Package org.apache.felix.framework
Class RequiredBundleImpl
- java.lang.Object
-
- org.apache.felix.framework.RequiredBundleImpl
-
- All Implemented Interfaces:
RequiredBundle
class RequiredBundleImpl extends java.lang.Object implements RequiredBundle
-
-
Field Summary
Fields Modifier and Type Field Description private BundleImplm_bundleprivate Felixm_felixprivate java.lang.Stringm_toStringprivate java.lang.Stringm_versionString
-
Constructor Summary
Constructors Constructor Description RequiredBundleImpl(Felix felix, BundleImpl bundle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BundlegetBundle()Returns the bundle associated with this required bundle.Bundle[]getRequiringBundles()Returns the bundles that currently require this required bundle.java.lang.StringgetSymbolicName()Returns the symbolic name of this required bundle.VersiongetVersion()Returns the version of this required bundle.booleanisRemovalPending()Returnstrueif the bundle associated with thisRequiredBundleobject has been updated or uninstalled.java.lang.StringtoString()
-
-
-
Field Detail
-
m_felix
private final Felix m_felix
-
m_bundle
private final BundleImpl m_bundle
-
m_toString
private volatile java.lang.String m_toString
-
m_versionString
private volatile java.lang.String m_versionString
-
-
Constructor Detail
-
RequiredBundleImpl
public RequiredBundleImpl(Felix felix, BundleImpl bundle)
-
-
Method Detail
-
getSymbolicName
public java.lang.String getSymbolicName()
Description copied from interface:RequiredBundleReturns the symbolic name of this required bundle.- Specified by:
getSymbolicNamein interfaceRequiredBundle- Returns:
- The symbolic name of this required bundle.
-
getBundle
public Bundle getBundle()
Description copied from interface:RequiredBundleReturns the bundle associated with this required bundle.- Specified by:
getBundlein interfaceRequiredBundle- Returns:
- The bundle, or
nullif thisRequiredBundleobject has become stale.
-
getRequiringBundles
public Bundle[] getRequiringBundles()
Description copied from interface:RequiredBundleReturns 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:
getRequiringBundlesin interfaceRequiredBundle- Returns:
- An array of bundles currently requiring this required bundle, or
nullif thisRequiredBundleobject has become stale. The array will be empty if no bundles require this required package.
-
getVersion
public Version getVersion()
Description copied from interface:RequiredBundleReturns the version of this required bundle.- Specified by:
getVersionin interfaceRequiredBundle- Returns:
- The version of this required bundle, or
Version.emptyVersionif no version information is available.
-
isRemovalPending
public boolean isRemovalPending()
Description copied from interface:RequiredBundleReturnstrueif the bundle associated with thisRequiredBundleobject has been updated or uninstalled.- Specified by:
isRemovalPendingin interfaceRequiredBundle- Returns:
trueif the required bundle has been updated or uninstalled, or if theRequiredBundleobject has become stale;falseotherwise.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-