public class BundleRevisionImpl extends java.lang.Object implements BundleRevision
| Modifier and Type | Field and Description |
|---|---|
static int |
EAGER_ACTIVATION |
static int |
LAZY_ACTIVATION |
BUNDLE_NAMESPACE, HOST_NAMESPACE, PACKAGE_NAMESPACE, TYPE_FRAGMENT| Constructor and Description |
|---|
BundleRevisionImpl(Bundle bundle,
java.lang.String id)
This constructor is used by the extension manager, since it needs
a constructor that does not throw an exception.
|
| Modifier and Type | Method and Description |
|---|---|
Bundle |
getBundle()
Returns the
Bundle object associated with this
BundleReference. |
Content |
getContent() |
java.util.List<BundleCapability> |
getDeclaredCapabilities(java.lang.String namespace)
Returns the capabilities declared by this bundle revision.
|
java.util.List<R4Library> |
getDeclaredNativeLibraries() |
java.util.List<BundleRequirement> |
getDeclaredRequirements(java.lang.String namespace)
Returns the requirements declared by this bundle revision.
|
java.net.URL |
getEntry(java.lang.String name) |
java.util.Map |
getHeaders() |
java.lang.String |
getId() |
java.io.InputStream |
getInputStream(int index,
java.lang.String urlPath) |
java.net.URL |
getLocalURL(int index,
java.lang.String urlPath) |
java.lang.String |
getManifestVersion() |
java.security.ProtectionDomain |
getProtectionDomain() |
java.lang.String |
getSymbolicName()
Returns the symbolic name for this bundle revision.
|
int |
getTypes()
Returns the special types of this bundle revision.
|
Version |
getVersion()
Returns the version for this bundle revision.
|
BundleWiring |
getWiring()
Returns the bundle wiring which is using this bundle revision.
|
boolean |
hasInputStream(int index,
java.lang.String urlPath) |
boolean |
isExtension() |
void |
resolve(BundleWiringImpl wiring) |
void |
setProtectionDomain(java.security.ProtectionDomain pd) |
java.lang.String |
toString() |
public static final int EAGER_ACTIVATION
public static final int LAZY_ACTIVATION
public BundleRevisionImpl(Bundle bundle, java.lang.String id)
logger - bundle - id - bootPkgs - bootPkgWildcards - BundleExceptionpublic java.lang.String getSymbolicName()
BundleRevisiongetSymbolicName in interface BundleRevisionBundle.getSymbolicName()public Version getVersion()
BundleRevisiongetVersion in interface BundleRevisionVersion.emptyVersion if this bundle revision has no
version information.Bundle.getVersion()public java.util.List<BundleCapability> getDeclaredCapabilities(java.lang.String namespace)
BundleRevisiongetDeclaredCapabilities in interface BundleRevisionnamespace - The name space of the declared capabilities to return or
null to return the declared capabilities from all name
spaces.BundleCapabilitys, or an empty list if this bundle
revision declares no capabilities in the specified name space.
The list contains the declared capabilities in the order they are
specified in the manifest.public java.util.List<BundleRequirement> getDeclaredRequirements(java.lang.String namespace)
BundleRevisiongetDeclaredRequirements in interface BundleRevisionnamespace - The name space of the declared requirements to return or
null to return the declared requirements from all name
spaces.BundleRequirements, or an empty list if this bundle
revision declares no requirements in the specified name space.
The list contains the declared requirements in the order they are
specified in the manifest.public int getTypes()
BundleRevisionIf this bundle revision is not one or more of the defined types then 0 is returned.
getTypes in interface BundleRevisionpublic BundleWiring getWiring()
BundleRevisiongetWiring in interface BundleRevisionnull if no bundle wiring is using this bundle revision.BundleWiring.getRevision()public Bundle getBundle()
BundleReferenceBundle object associated with this
BundleReference.getBundle in interface BundleReferenceBundle object associated with this
BundleReference.public java.util.Map getHeaders()
public boolean isExtension()
public java.lang.String getManifestVersion()
public java.util.List<R4Library> getDeclaredNativeLibraries()
public java.lang.String getId()
public void resolve(BundleWiringImpl wiring)
public void setProtectionDomain(java.security.ProtectionDomain pd)
public java.security.ProtectionDomain getProtectionDomain()
public Content getContent()
public java.net.URL getEntry(java.lang.String name)
public boolean hasInputStream(int index,
java.lang.String urlPath)
public java.io.InputStream getInputStream(int index,
java.lang.String urlPath)
throws java.io.IOException
java.io.IOExceptionpublic java.net.URL getLocalURL(int index,
java.lang.String urlPath)
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2012. All Rights Reserved.