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, toStringaggregate, checkLocked, getCapabilities, getDynamicImportedPackages, getExportedPackages, getImportedPackages, getName, getRequirements, isLocked, lockpublic BundleDescriptorImpl(org.apache.sling.feature.Artifact a,
URL file,
int startLevel)
throws IOException
IOExceptionpublic String getBundleSymbolicName()
getBundleSymbolicName in class BundleDescriptorpublic String getBundleVersion()
getBundleVersion in class BundleDescriptorpublic int getBundleStartLevel()
getBundleStartLevel in class BundleDescriptor0 for the default.public URL getArtifactFile()
ArtifactDescriptorgetArtifactFile in class ArtifactDescriptorpublic org.apache.sling.feature.Artifact getArtifact()
ArtifactDescriptorgetArtifact in class ArtifactDescriptorpublic Manifest getManifest()
BundleDescriptorgetManifest in class BundleDescriptorprotected void analyze()
throws IOException
IOExceptionpublic 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–2020 The Apache Software Foundation. All rights reserved.