Package org.eclipse.osgi.container
Class ModuleRevision
java.lang.Object
org.eclipse.osgi.container.ModuleRevision
- All Implemented Interfaces:
BundleReference
,BundleRevision
,Resource
An implementation of
BundleRevision
.- Since:
- 3.10
-
Field Summary
Fields inherited from interface org.osgi.framework.wiring.BundleRevision
BUNDLE_NAMESPACE, HOST_NAMESPACE, PACKAGE_NAMESPACE, TYPE_FRAGMENT
-
Method Summary
Modifier and TypeMethodDescriptiongetCapabilities
(String namespace) getDeclaredCapabilities
(String namespace) getDeclaredRequirements
(String namespace) getModuleCapabilities
(String namespace) Returns the capabilities declared by this revisiongetModuleRequirements
(String namespace) Returns the requirements declared by this revisiongetRequirements
(String namespace) Returns the revision info for this revision.Returns therevisions
for this revision.int
getTypes()
boolean
A convenience method to quickly determine if this revision has declared the lazy activation policy.toString()
-
Method Details
-
getBundle
- Specified by:
getBundle
in interfaceBundleReference
-
getSymbolicName
- Specified by:
getSymbolicName
in interfaceBundleRevision
-
getVersion
- Specified by:
getVersion
in interfaceBundleRevision
-
getDeclaredCapabilities
- Specified by:
getDeclaredCapabilities
in interfaceBundleRevision
-
getDeclaredRequirements
- Specified by:
getDeclaredRequirements
in interfaceBundleRevision
-
getModuleCapabilities
Returns the capabilities declared by this revision- 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 capabilities.
-
getModuleRequirements
Returns the requirements declared by this revision- Parameters:
namespace
- The namespace of the declared requirements to return ornull
to return the declared requirements from all namespaces.- Returns:
- An unmodifiable list containing the declared requirements.
-
getTypes
public int getTypes()- Specified by:
getTypes
in interfaceBundleRevision
-
getWiring
- Specified by:
getWiring
in interfaceBundleRevision
-
getCapabilities
- Specified by:
getCapabilities
in interfaceBundleRevision
- Specified by:
getCapabilities
in interfaceResource
-
getRequirements
- Specified by:
getRequirements
in interfaceBundleRevision
- Specified by:
getRequirements
in interfaceResource
-
getRevisions
Returns therevisions
for this revision.- Returns:
- the
revisions
for this revision.
-
getRevisionInfo
Returns the revision info for this revision. The revision info is assigned when a revision is created to install a module or update module- Returns:
- the revision info for this revision, may be
null
.
-
hasLazyActivatePolicy
public boolean hasLazyActivatePolicy()A convenience method to quickly determine if this revision has declared the lazy activation policy.- Returns:
- true if the lazy activation policy has been declared by this module; otherwise false is returned.
-
toString
-