Package org.apache.sling.feature.scanner
Class BundleDescriptor
java.lang.Object
org.apache.sling.feature.scanner.Descriptor
org.apache.sling.feature.scanner.ArtifactDescriptor
org.apache.sling.feature.scanner.BundleDescriptor
- All Implemented Interfaces:
java.lang.Comparable<BundleDescriptor>
public abstract class BundleDescriptor extends ArtifactDescriptor implements java.lang.Comparable<BundleDescriptor>
Information about a bundle.
Note that this implementation is not synchronized. If multiple threads access
a descriptor concurrently, and at least one of the threads modifies the
descriptor structurally, it must be synchronized externally. However, once a
descriptor is locked, it is safe to access it concurrently.
-
Constructor Summary
Constructors Modifier Constructor Description protectedBundleDescriptor(java.lang.String name)Constructor for a new descriptor -
Method Summary
Modifier and Type Method Description intcompareTo(BundleDescriptor o)booleanequals(java.lang.Object obj)abstract intgetBundleStartLevel()Deprecated.Use start order of the bundleabstract java.lang.StringgetBundleSymbolicName()Get the bundle symbolic name.abstract java.lang.StringgetBundleVersion()Get the bundle versionabstract java.util.jar.ManifestgetManifest()Return the bundle manifestinthashCode()booleanisExportingPackage(java.lang.String packageName)Is the bundle exporting a package?booleanisExportingPackage(PackageInfo info)Is the bundle exporting a package?java.lang.StringtoString()Methods inherited from class org.apache.sling.feature.scanner.ArtifactDescriptor
getArtifact, getArtifactFileMethods inherited from class org.apache.sling.feature.scanner.Descriptor
aggregate, checkLocked, getCapabilities, getDynamicImportedPackages, getExportedPackages, getImportedPackages, getName, getRequirements, isLocked, lock
-
Constructor Details
-
BundleDescriptor
protected BundleDescriptor(java.lang.String name)Constructor for a new descriptor- Parameters:
name- The name
-
-
Method Details
-
getBundleSymbolicName
public abstract java.lang.String getBundleSymbolicName()Get the bundle symbolic name.- Returns:
- The bundle symbolic name
-
getBundleVersion
public abstract java.lang.String getBundleVersion()Get the bundle version- Returns:
- The bundle version
-
getManifest
public abstract java.util.jar.Manifest getManifest()Return the bundle manifest- Specified by:
getManifestin classArtifactDescriptor- Returns:
- The manifest
-
getBundleStartLevel
@Deprecated public abstract int getBundleStartLevel()Deprecated.Use start order of the bundleGet the start level- Returns:
- The start level.
-
isExportingPackage
public boolean isExportingPackage(java.lang.String packageName)Is the bundle exporting a package?- Parameters:
packageName- Package name- Returns:
trueif that package is exported.
-
isExportingPackage
Is the bundle exporting a package?- Parameters:
info- Package info- Returns:
trueif that package is exported.
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classDescriptor
-
compareTo
- Specified by:
compareToin interfacejava.lang.Comparable<BundleDescriptor>
-