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
class ExtensionManager.ExtensionManagerRevision extends BundleRevisionImpl
-
-
Field Summary
Fields Modifier and Type Field Description private Version
m_version
private BundleWiring
m_wiring
-
Fields 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 Constructor Description ExtensionManagerRevision(Felix felix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Content
getContent()
java.util.List<BundleCapability>
getDeclaredCapabilities(java.lang.String namespace)
Returns the capabilities declared by this bundle revision.java.net.URL
getEntry(java.lang.String name)
java.util.Map
getHeaders()
java.io.InputStream
getInputStream(int index, java.lang.String urlPath)
java.net.URL
getLocalURL(int index, java.lang.String urlPath)
java.lang.String
getSymbolicName()
Returns the symbolic name for 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)
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 Detail
-
m_version
private final Version m_version
-
m_wiring
private volatile BundleWiring m_wiring
-
-
Constructor Detail
-
ExtensionManagerRevision
ExtensionManagerRevision(Felix felix)
-
-
Method Detail
-
getHeaders
public java.util.Map getHeaders()
- Overrides:
getHeaders
in classBundleRevisionImpl
-
getDeclaredCapabilities
public java.util.List<BundleCapability> getDeclaredCapabilities(java.lang.String namespace)
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
public java.lang.String 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:
Bundle.getSymbolicName()
-
getVersion
public Version 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:
Bundle.getVersion()
-
close
public void close()
- Overrides:
close
in classBundleRevisionImpl
-
getContent
public Content getContent()
- Overrides:
getContent
in classBundleRevisionImpl
-
getEntry
public java.net.URL getEntry(java.lang.String name)
- Overrides:
getEntry
in classBundleRevisionImpl
-
hasInputStream
public boolean hasInputStream(int index, java.lang.String urlPath)
- Overrides:
hasInputStream
in classBundleRevisionImpl
-
getInputStream
public java.io.InputStream getInputStream(int index, java.lang.String urlPath)
- Overrides:
getInputStream
in classBundleRevisionImpl
-
getLocalURL
public java.net.URL getLocalURL(int index, java.lang.String urlPath)
- Overrides:
getLocalURL
in classBundleRevisionImpl
-
resolve
public void resolve(BundleWiringImpl wire)
- Overrides:
resolve
in classBundleRevisionImpl
-
getWiring
public BundleWiring 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:
BundleWiring.getRevision()
-
-