public class BundleLoaderProxy extends Object implements RequiredBundle, BundleReference
Constructor and Description |
---|
BundleLoaderProxy(BundleHost bundle,
BundleDescription description) |
Modifier and Type | Method and Description |
---|---|
PackageSource |
createPackageSource(ExportPackageDescription export,
boolean storeSource) |
BundleLoader |
getBasicBundleLoader() |
Bundle |
getBundle()
Returns the bundle associated with this required bundle.
|
BundleData |
getBundleData() |
BundleDescription |
getBundleDescription() |
AbstractBundle |
getBundleHost() |
BundleLoader |
getBundleLoader() |
Bundle[] |
getRequiringBundles()
Returns the bundles that currently require this required bundle.
|
String |
getSymbolicName()
Returns the symbolic name of this required bundle.
|
Version |
getVersion()
Returns the version of this required bundle.
|
boolean |
inUse() |
boolean |
isRemovalPending()
Returns
true if the bundle associated with this
RequiredBundle object has been updated or uninstalled. |
boolean |
isStale() |
String |
toString() |
public BundleLoaderProxy(BundleHost bundle, BundleDescription description)
public BundleLoader getBundleLoader()
public BundleLoader getBasicBundleLoader()
public AbstractBundle getBundleHost()
public boolean isStale()
public Bundle getBundle()
RequiredBundle
getBundle
in interface BundleReference
getBundle
in interface RequiredBundle
null
if this
RequiredBundle
object has become stale.public BundleData getBundleData()
public Bundle[] getRequiringBundles()
RequiredBundle
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.
getRequiringBundles
in interface RequiredBundle
null
if this RequiredBundle
object
has become stale. The array will be empty if no bundles require
this required package.public String getSymbolicName()
RequiredBundle
getSymbolicName
in interface RequiredBundle
public Version getVersion()
RequiredBundle
getVersion
in interface RequiredBundle
Version.emptyVersion
if no version information is
available.public boolean isRemovalPending()
RequiredBundle
true
if the bundle associated with this
RequiredBundle
object has been updated or uninstalled.isRemovalPending
in interface RequiredBundle
true
if the required bundle has been updated or
uninstalled, or if the RequiredBundle
object has
become stale; false
otherwise.public BundleDescription getBundleDescription()
public boolean inUse()
public PackageSource createPackageSource(ExportPackageDescription export, boolean storeSource)
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.