Package org.apache.felix.framework
Class ExtensionManager.ExtensionManagerRevision
java.lang.Object
org.apache.felix.framework.BundleRevisionImpl
org.apache.felix.framework.ExtensionManager.ExtensionManagerRevision
- All Implemented Interfaces:
BundleReference
,BundleRevision
,Resource
- Enclosing class:
ExtensionManager
-
Field Summary
FieldsFields inherited from class org.apache.felix.framework.BundleRevisionImpl
EAGER_ACTIVATION, LAZY_ACTIVATION
Fields inherited from interface org.osgi.framework.wiring.BundleRevision
BUNDLE_NAMESPACE, HOST_NAMESPACE, PACKAGE_NAMESPACE, TYPE_FRAGMENT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
getDeclaredCapabilities
(String namespace) Returns the capabilities declared by this bundle revision.getInputStream
(int index, String urlPath) getLocalURL
(int index, String urlPath) Returns the symbolic name for this bundle revision.Returns the version for this bundle revision.Returns the bundle wiring which is using this bundle revision.boolean
hasInputStream
(int index, String urlPath) void
resolve
(BundleWiringImpl wire) Methods inherited from class org.apache.felix.framework.BundleRevisionImpl
asCapabilityList, asRequirementList, getBundle, getCapabilities, getContentPath, getDeclaredActivationPolicy, getDeclaredNativeLibraries, getDeclaredRequirements, getId, getManifestVersion, getProtectionDomain, getRequirements, getResourceLocal, getResourcesLocal, getSecureAction, getTypes, isActivationTrigger, isExtension, resetContent, setProtectionDomain, toString
-
Field Details
-
m_version
-
m_wiring
-
-
Constructor Details
-
ExtensionManagerRevision
ExtensionManagerRevision(Felix felix)
-
-
Method Details
-
getHeaders
- Overrides:
getHeaders
in classBundleRevisionImpl
-
getDeclaredCapabilities
Description copied from interface:BundleRevision
Returns the capabilities declared by this bundle revision.- Specified by:
getDeclaredCapabilities
in interfaceBundleRevision
- Overrides:
getDeclaredCapabilities
in classBundleRevisionImpl
- Parameters:
namespace
- The namespace of the declared capabilities to return ornull
to return the declared capabilities from all namespaces.- Returns:
- An unmodifiable list containing the declared
BundleCapability
s 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.
-
getSymbolicName
Description copied from interface:BundleRevision
Returns the symbolic name for this bundle revision.- Specified by:
getSymbolicName
in interfaceBundleRevision
- Overrides:
getSymbolicName
in classBundleRevisionImpl
- Returns:
- The symbolic name for this bundle revision.
- See Also:
-
getVersion
Description copied from interface:BundleRevision
Returns the version for this bundle revision.- Specified by:
getVersion
in interfaceBundleRevision
- Overrides:
getVersion
in classBundleRevisionImpl
- Returns:
- The version for this bundle revision, or
Version.emptyVersion
if this bundle revision has no version information. - See Also:
-
close
public void close()- Overrides:
close
in classBundleRevisionImpl
-
getContent
- Overrides:
getContent
in classBundleRevisionImpl
-
getEntry
- Overrides:
getEntry
in classBundleRevisionImpl
-
hasInputStream
- Overrides:
hasInputStream
in classBundleRevisionImpl
-
getInputStream
- Overrides:
getInputStream
in classBundleRevisionImpl
-
getLocalURL
- Overrides:
getLocalURL
in classBundleRevisionImpl
-
resolve
- Overrides:
resolve
in classBundleRevisionImpl
-
getWiring
Description copied from interface:BundleRevision
Returns the bundle wiring which is using this bundle revision.- Specified by:
getWiring
in interfaceBundleRevision
- Overrides:
getWiring
in classBundleRevisionImpl
- Returns:
- The bundle wiring which is using this bundle revision or
null
if no bundle wiring is using this bundle revision. - See Also:
-