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>
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
ConstructorsModifierConstructorDescriptionprotectedBundleDescriptor(String name) Constructor for a new descriptor -
Method Summary
Modifier and TypeMethodDescriptionintbooleanabstract StringGet the bundle symbolic name.abstract StringGet the bundle versionabstract ManifestReturn the bundle manifestinthashCode()booleanisExportingPackage(String packageName) Is the bundle exporting a package?booleanIs the bundle exporting a package?toString()Methods inherited from class org.apache.sling.feature.scanner.ArtifactDescriptor
getArtifact, getArtifactFileMethods inherited from class org.apache.sling.feature.scanner.Descriptor
aggregate, checkLocked, getCapabilities, getCapabilities, getDynamicImportedPackages, getExportedPackages, getExportedPackages, getImportedPackages, getName, getRequirements, isLocked, lock
-
Constructor Details
-
BundleDescriptor
Constructor for a new descriptor- Parameters:
name- The name- Throws:
IllegalArgumentException- if name isnull
-
-
Method Details
-
getBundleSymbolicName
Get the bundle symbolic name.- Returns:
- The bundle symbolic name
-
getBundleVersion
Get the bundle version- Returns:
- The bundle version
-
getManifest
Return the bundle manifest- Specified by:
getManifestin classArtifactDescriptor- Returns:
- The manifest
-
isExportingPackage
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
-
hashCode
public int hashCode() -
toString
- Overrides:
toStringin classDescriptor
-
compareTo
- Specified by:
compareToin interfaceComparable<BundleDescriptor>
-