class RequiredBundleImpl extends java.lang.Object implements RequiredBundle
| Modifier and Type | Field and Description |
|---|---|
private BundleImpl |
m_bundle |
private Felix |
m_felix |
private java.lang.String |
m_toString |
private java.lang.String |
m_versionString |
| Constructor and Description |
|---|
RequiredBundleImpl(Felix felix,
BundleImpl bundle) |
| Modifier and Type | Method and Description |
|---|---|
Bundle |
getBundle()
Returns the bundle associated with this required bundle.
|
Bundle[] |
getRequiringBundles()
Returns the bundles that currently require this required bundle.
|
java.lang.String |
getSymbolicName()
Returns the symbolic name of this required bundle.
|
Version |
getVersion()
Returns the version of this required bundle.
|
boolean |
isRemovalPending()
Returns
true if the bundle associated with this
RequiredBundle object has been updated or uninstalled. |
java.lang.String |
toString() |
private final Felix m_felix
private final BundleImpl m_bundle
private volatile java.lang.String m_toString
private volatile java.lang.String m_versionString
public RequiredBundleImpl(Felix felix, BundleImpl bundle)
public java.lang.String getSymbolicName()
RequiredBundlegetSymbolicName in interface RequiredBundlepublic Bundle getBundle()
RequiredBundlegetBundle in interface RequiredBundlenull if this
RequiredBundle object has become stale.public Bundle[] getRequiringBundles()
RequiredBundleIf 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.
getRequiringBundles in interface RequiredBundlenull if this RequiredBundle object
has become stale. The array will be empty if no bundles require
this required package.public Version getVersion()
RequiredBundlegetVersion in interface RequiredBundleVersion.emptyVersion if no version information is
available.public boolean isRemovalPending()
RequiredBundletrue if the bundle associated with this
RequiredBundle object has been updated or uninstalled.isRemovalPending in interface RequiredBundletrue if the required bundle has been updated or
uninstalled, or if the RequiredBundle object has
become stale; false otherwise.public java.lang.String toString()
toString in class java.lang.Object