Package org.apache.felix.framework
Class RequiredBundleImpl
java.lang.Object
org.apache.felix.framework.RequiredBundleImpl
- All Implemented Interfaces:
RequiredBundle
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BundleImpl
private final Felix
private String
private String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the bundle associated with this required bundle.Bundle[]
Returns the bundles that currently require this required bundle.Returns the symbolic name of this required bundle.Returns the version of this required bundle.boolean
Returnstrue
if the bundle associated with thisRequiredBundle
object has been updated or uninstalled.toString()
-
Field Details
-
m_felix
-
m_bundle
-
m_toString
-
m_versionString
-
-
Constructor Details
-
RequiredBundleImpl
-
-
Method Details
-
getSymbolicName
Description copied from interface:RequiredBundle
Returns the symbolic name of this required bundle.- Specified by:
getSymbolicName
in interfaceRequiredBundle
- Returns:
- The symbolic name of this required bundle.
-
getBundle
Description copied from interface:RequiredBundle
Returns the bundle associated with this required bundle.- Specified by:
getBundle
in interfaceRequiredBundle
- Returns:
- The bundle, or
null
if thisRequiredBundle
object has become stale.
-
getRequiringBundles
Description copied from interface:RequiredBundle
Returns the bundles that currently require this required bundle.If this required bundle is required and then re-exported by another bundle then all the requiring bundles of the re-exporting bundle are included in the returned array.
- Specified by:
getRequiringBundles
in interfaceRequiredBundle
- Returns:
- An array of bundles currently requiring this required bundle, or
null
if thisRequiredBundle
object has become stale. The array will be empty if no bundles require this required package.
-
getVersion
Description copied from interface:RequiredBundle
Returns the version of this required bundle.- Specified by:
getVersion
in interfaceRequiredBundle
- Returns:
- The version of this required bundle, or
Version.emptyVersion
if no version information is available.
-
isRemovalPending
public boolean isRemovalPending()Description copied from interface:RequiredBundle
Returnstrue
if the bundle associated with thisRequiredBundle
object has been updated or uninstalled.- Specified by:
isRemovalPending
in interfaceRequiredBundle
- Returns:
true
if the required bundle has been updated or uninstalled, or if theRequiredBundle
object has become stale;false
otherwise.
-
toString
-