Class ClassManifestLocator

java.lang.Object
com.peterphi.std.util.ClassManifestLocator

public class ClassManifestLocator extends Object
Retrieve the MANIFEST.MF properties for the jar/war containing a particular class
  • Constructor Details

    • ClassManifestLocator

      public ClassManifestLocator()
  • Method Details

    • get

      public static PropertyFile get(Class<?> clazz)
      Attempt to find the MANIFEST.MF associated with a particular class
      Parameters:
      clazz - The class whose jar/war should be searched for a MANIFEST.MF
      Returns:
      a PropertyFile version of the main manifest attributes if found, otherwise null