public class BundleRevisionImpl extends Object implements BundleRevision, Resource
| 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(org.apache.felix.framework.BundleImpl bundle,
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 |
|---|---|
org.apache.felix.framework.BundleImpl |
getBundle()
Returns the
Bundle object associated with this
BundleReference. |
List<Capability> |
getCapabilities(String namespace)
Returns the capabilities declared by this resource.
|
Content |
getContent() |
List<BundleCapability> |
getDeclaredCapabilities(String namespace)
Returns the capabilities declared by this bundle revision.
|
List<NativeLibrary> |
getDeclaredNativeLibraries() |
List<BundleRequirement> |
getDeclaredRequirements(String namespace)
Returns the requirements declared by this bundle revision.
|
URL |
getEntry(String name) |
Map<String,Object> |
getHeaders() |
String |
getId() |
InputStream |
getInputStream(int index,
String urlPath) |
URL |
getLocalURL(int index,
String urlPath) |
String |
getManifestVersion() |
ProtectionDomain |
getProtectionDomain() |
List<Requirement> |
getRequirements(String namespace)
Returns the requirements declared by this bundle resource.
|
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,
String urlPath) |
boolean |
isExtension() |
void |
resolve(BundleWiringImpl wiring) |
void |
setProtectionDomain(ProtectionDomain pd) |
String |
toString() |
public static final int EAGER_ACTIVATION
public static final int LAZY_ACTIVATION
public BundleRevisionImpl(org.apache.felix.framework.BundleImpl bundle,
String id)
bundle - id - BundleExceptionpublic 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 List<Capability> getCapabilities(String namespace)
BundleRevision
This method returns the same value as
BundleRevision.getDeclaredCapabilities(String).
getCapabilities in interface BundleRevisiongetCapabilities in interface Resourcenamespace - The namespace of the declared capabilities to return or
null to return the declared capabilities from all
namespaces.Capabilitys
from the specified namespace. The returned list will be empty if
this resource declares no capabilities in the specified
namespace.public List<BundleCapability> getDeclaredCapabilities(String namespace)
BundleRevisiongetDeclaredCapabilities in interface BundleRevisionnamespace - The namespace of the declared capabilities to return or
null to return the declared capabilities from all
namespaces.BundleCapabilitys from the specified namespace. The
returned list will be empty if this bundle revision declares no
capabilities in the specified namespace. The list contains the
declared capabilities in the order they are specified in the
manifest.public List<Requirement> getRequirements(String namespace)
BundleRevision
This method returns the same value as
BundleRevision.getDeclaredRequirements(String).
getRequirements in interface BundleRevisiongetRequirements in interface Resourcenamespace - The namespace of the declared requirements to return or
null to return the declared requirements from all
namespaces.Requirement
s from the specified namespace. The returned list will be empty
if this resource declares no requirements in the specified
namespace.public List<BundleRequirement> getDeclaredRequirements(String namespace)
BundleRevisiongetDeclaredRequirements in interface BundleRevisionnamespace - The namespace of the declared requirements to return or
null to return the declared requirements from all
namespaces.BundleRequirements from the specified namespace. The
returned list will be empty if this bundle revision declares no
requirements in the specified namespace. 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 org.apache.felix.framework.BundleImpl getBundle()
BundleReferenceBundle object associated with this
BundleReference.getBundle in interface BundleReferenceBundle object associated with this
BundleReference.public boolean isExtension()
public String getManifestVersion()
public List<NativeLibrary> getDeclaredNativeLibraries()
public String getId()
public void resolve(BundleWiringImpl wiring)
public void setProtectionDomain(ProtectionDomain pd)
public ProtectionDomain getProtectionDomain()
public Content getContent()
public boolean hasInputStream(int index,
String urlPath)
public InputStream getInputStream(int index, String urlPath) throws IOException
IOExceptionCopyright © 2006–2021 The Apache Software Foundation. All rights reserved.