Package org.hotswap.agent.versions
Class DeploymentInfo
- java.lang.Object
-
- org.hotswap.agent.versions.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 methodDeploymentInfo.fromClassLoader(ClassLoader classloader))- Author:
- alpapad@gmail.com
-
-
Constructor Summary
Constructors Constructor Description DeploymentInfo(Set<MavenInfo> maven, Set<ManifestInfo> manifest)Instantiates a new deployment info.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static DeploymentInfofromClassLoader(ClassLoader classloader)Load the deployment info for this classloader.Set<ManifestInfo>getManifest()Gets the manifest attributes.static Set<ManifestInfo>getManifest(ClassLoader classloader)Gets the manifest Info.static ManifestInfogetManifest(Resource resource)Gets the manifest for a specific resource.Set<MavenInfo>getMaven()Gets the maven coordinates.inthashCode()booleanisEmpty()Checks if is empty.voidsetManifest(Set<ManifestInfo> manifest)Sets the manifest.voidsetMaven(Set<MavenInfo> maven)Sets the maven coordinates.StringtoString()
-
-
-
Constructor Detail
-
DeploymentInfo
public DeploymentInfo(Set<MavenInfo> maven, Set<ManifestInfo> manifest)
Instantiates a new deployment info.- Parameters:
maven- the maven coordinatesmanifest- 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
-
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
-
-