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:
Comparable<BundleDescriptor>
- Direct Known Subclasses:
BundleDescriptorImpl
public abstract class BundleDescriptor extends ArtifactDescriptor implements 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(String name)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intcompareTo(BundleDescriptor o)booleanequals(Object obj)abstract intgetBundleStartLevel()Deprecated.Use start order of the bundleabstract StringgetBundleSymbolicName()Get the bundle symbolic name.abstract StringgetBundleVersion()Get the bundle versionabstract ManifestgetManifest()If the artifact has a manifest, return itinthashCode()booleanisExportingPackage(String packageName)booleanisExportingPackage(PackageInfo info)StringtoString()-
Methods inherited from class org.apache.sling.feature.scanner.ArtifactDescriptor
getArtifact, getArtifactFile
-
Methods inherited from class org.apache.sling.feature.scanner.Descriptor
aggregate, checkLocked, getCapabilities, getDynamicImportedPackages, getExportedPackages, getImportedPackages, getName, getRequirements, isLocked, lock
-
-
-
-
Constructor Detail
-
BundleDescriptor
protected BundleDescriptor(String name)
-
-
Method Detail
-
getBundleSymbolicName
public abstract String getBundleSymbolicName()
Get the bundle symbolic name.- Returns:
- The bundle symbolic name
-
getBundleVersion
public abstract String getBundleVersion()
Get the bundle version- Returns:
- The bundle version
-
getBundleStartLevel
@Deprecated public abstract int getBundleStartLevel()
Deprecated.Use start order of the bundleGet the start level- Returns:
- The start level.
-
getManifest
public abstract Manifest getManifest()
If the artifact has a manifest, return it- Returns:
- The manifest
-
isExportingPackage
public boolean isExportingPackage(String packageName)
-
isExportingPackage
public boolean isExportingPackage(PackageInfo info)
-
toString
public String toString()
- Overrides:
toStringin classDescriptor
-
compareTo
public int compareTo(BundleDescriptor o)
- Specified by:
compareToin interfaceComparable<BundleDescriptor>
-
-