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 Versionm_versionprivate BundleWiringm_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 voidclose()ContentgetContent()java.util.List<BundleCapability>getDeclaredCapabilities(java.lang.String namespace)Returns the capabilities declared by this bundle revision.java.net.URLgetEntry(java.lang.String name)java.util.MapgetHeaders()java.io.InputStreamgetInputStream(int index, java.lang.String urlPath)java.net.URLgetLocalURL(int index, java.lang.String urlPath)java.lang.StringgetSymbolicName()Returns the symbolic name for this bundle revision.VersiongetVersion()Returns the version for this bundle revision.BundleWiringgetWiring()Returns the bundle wiring which is using this bundle revision.booleanhasInputStream(int index, java.lang.String urlPath)voidresolve(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:
getHeadersin classBundleRevisionImpl
-
getDeclaredCapabilities
public java.util.List<BundleCapability> getDeclaredCapabilities(java.lang.String namespace)
Description copied from interface:BundleRevisionReturns the capabilities declared by this bundle revision.- Specified by:
getDeclaredCapabilitiesin interfaceBundleRevision- Overrides:
getDeclaredCapabilitiesin classBundleRevisionImpl- Parameters:
namespace- The namespace of the declared capabilities to return ornullto return the declared capabilities from all namespaces.- Returns:
- An unmodifiable list containing the declared
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.
-
getSymbolicName
public java.lang.String getSymbolicName()
Description copied from interface:BundleRevisionReturns the symbolic name for this bundle revision.- Specified by:
getSymbolicNamein interfaceBundleRevision- Overrides:
getSymbolicNamein classBundleRevisionImpl- Returns:
- The symbolic name for this bundle revision.
- See Also:
Bundle.getSymbolicName()
-
getVersion
public Version getVersion()
Description copied from interface:BundleRevisionReturns the version for this bundle revision.- Specified by:
getVersionin interfaceBundleRevision- Overrides:
getVersionin classBundleRevisionImpl- Returns:
- The version for this bundle revision, or
Version.emptyVersionif this bundle revision has no version information. - See Also:
Bundle.getVersion()
-
close
public void close()
- Overrides:
closein classBundleRevisionImpl
-
getContent
public Content getContent()
- Overrides:
getContentin classBundleRevisionImpl
-
getEntry
public java.net.URL getEntry(java.lang.String name)
- Overrides:
getEntryin classBundleRevisionImpl
-
hasInputStream
public boolean hasInputStream(int index, java.lang.String urlPath)- Overrides:
hasInputStreamin classBundleRevisionImpl
-
getInputStream
public java.io.InputStream getInputStream(int index, java.lang.String urlPath)- Overrides:
getInputStreamin classBundleRevisionImpl
-
getLocalURL
public java.net.URL getLocalURL(int index, java.lang.String urlPath)- Overrides:
getLocalURLin classBundleRevisionImpl
-
resolve
public void resolve(BundleWiringImpl wire)
- Overrides:
resolvein classBundleRevisionImpl
-
getWiring
public BundleWiring getWiring()
Description copied from interface:BundleRevisionReturns the bundle wiring which is using this bundle revision.- Specified by:
getWiringin interfaceBundleRevision- Overrides:
getWiringin classBundleRevisionImpl- Returns:
- The bundle wiring which is using this bundle revision or
nullif no bundle wiring is using this bundle revision. - See Also:
BundleWiring.getRevision()
-
-