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 therevisionsfor this revision.intgetTypes()booleanA convenience method to quickly determine if this revision has declared the lazy activation policy.toString()
-
Method Details
-
getBundle
- Specified by:
getBundlein interfaceBundleReference
-
getSymbolicName
- Specified by:
getSymbolicNamein interfaceBundleRevision
-
getVersion
- Specified by:
getVersionin interfaceBundleRevision
-
getDeclaredCapabilities
- Specified by:
getDeclaredCapabilitiesin interfaceBundleRevision
-
getDeclaredRequirements
- Specified by:
getDeclaredRequirementsin interfaceBundleRevision
-
getModuleCapabilities
Returns the capabilities declared by this revision- 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 capabilities.
-
getModuleRequirements
Returns the requirements declared by this revision- Parameters:
namespace- The namespace of the declared requirements to return ornullto return the declared requirements from all namespaces.- Returns:
- An unmodifiable list containing the declared requirements.
-
getTypes
public int getTypes()- Specified by:
getTypesin interfaceBundleRevision
-
getWiring
- Specified by:
getWiringin interfaceBundleRevision
-
getCapabilities
- Specified by:
getCapabilitiesin interfaceBundleRevision- Specified by:
getCapabilitiesin interfaceResource
-
getRequirements
- Specified by:
getRequirementsin interfaceBundleRevision- Specified by:
getRequirementsin interfaceResource
-
getRevisions
Returns therevisionsfor this revision.- Returns:
- the
revisionsfor 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
-