public class BundleDescriptorImpl extends BundleDescriptor
Constructor and Description |
---|
BundleDescriptorImpl(org.apache.sling.feature.Artifact a,
URL file,
int startLevel) |
Modifier and Type | Method and Description |
---|---|
protected void |
analyze() |
static List<PackageInfo> |
extractDynamicImportedPackages(Manifest m) |
static List<PackageInfo> |
extractExportedPackages(Manifest m) |
static List<PackageInfo> |
extractImportedPackages(Manifest m) |
static List<PackageInfo> |
extractPackages(Manifest m,
String headerName,
String defaultVersion,
boolean checkOptional) |
org.apache.sling.feature.Artifact |
getArtifact()
Get the artifact
|
URL |
getArtifactFile()
Get the artifact file
|
int |
getBundleStartLevel()
Get the start level
|
String |
getBundleSymbolicName()
Get the bundle symbolic name.
|
String |
getBundleVersion()
Get the bundle version
|
Manifest |
getManifest()
If the artifact has a manifest, return it
|
compareTo, equals, hashCode, isExportingPackage, isExportingPackage, toString
aggregate, checkLocked, getCapabilities, getDynamicImportedPackages, getExportedPackages, getImportedPackages, getName, getRequirements, isLocked, lock
public BundleDescriptorImpl(org.apache.sling.feature.Artifact a, URL file, int startLevel) throws IOException
IOException
public String getBundleSymbolicName()
getBundleSymbolicName
in class BundleDescriptor
public String getBundleVersion()
getBundleVersion
in class BundleDescriptor
public int getBundleStartLevel()
getBundleStartLevel
in class BundleDescriptor
0
for the default.public URL getArtifactFile()
ArtifactDescriptor
getArtifactFile
in class ArtifactDescriptor
public org.apache.sling.feature.Artifact getArtifact()
ArtifactDescriptor
getArtifact
in class ArtifactDescriptor
public Manifest getManifest()
BundleDescriptor
getManifest
in class BundleDescriptor
protected void analyze() throws IOException
IOException
public static List<PackageInfo> extractPackages(Manifest m, String headerName, String defaultVersion, boolean checkOptional)
public static List<PackageInfo> extractExportedPackages(Manifest m)
public static List<PackageInfo> extractImportedPackages(Manifest m)
public static List<PackageInfo> extractDynamicImportedPackages(Manifest m)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.