Class DeploymentInfo


  • public class DeploymentInfo
    extends Object
    The DeploymentInfo collects all known information (jar maven and manifest artifacts). The DeploymentInfo is usually retrieved via the class loader (see static method DeploymentInfo.fromClassLoader(ClassLoader classloader))
    Author:
    alpapad@gmail.com
    • Constructor Detail

      • DeploymentInfo

        public DeploymentInfo​(Set<MavenInfo> maven,
                              Set<ManifestInfo> manifest)
        Instantiates a new deployment info.
        Parameters:
        maven - the maven coordinates
        manifest - the manifest attributes
    • Method Detail

      • getManifest

        public Set<ManifestInfo> getManifest()
        Gets the manifest attributes.
        Returns:
        the manifest attributes
      • getMaven

        public Set<MavenInfo> getMaven()
        Gets the maven coordinates.
        Returns:
        the maven coordinates
      • setMaven

        public void setMaven​(Set<MavenInfo> maven)
        Sets the maven coordinates.
        Parameters:
        maven - the new maven coordinates
      • isEmpty

        public boolean isEmpty()
        Checks if is empty.
        Returns:
        true, if is empty
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • setManifest

        public void setManifest​(Set<ManifestInfo> manifest)
        Sets the manifest.
        Parameters:
        manifest - the new manifest
      • fromClassLoader

        public static DeploymentInfo fromClassLoader​(ClassLoader classloader)
        Load the deployment info for this classloader.
        Parameters:
        classloader - the ClassLoader
        Returns:
        the deployment info
      • getManifest

        public static Set<ManifestInfo> getManifest​(ClassLoader classloader)
        Gets the manifest Info.
        Parameters:
        classloader - the ClassLoader
        Returns:
        the manifest
      • getManifest

        public static ManifestInfo getManifest​(Resource resource)
        Gets the manifest for a specific resource.
        Parameters:
        resource - the resource
        Returns:
        the ManifestInfo