org.eclipse.osgi.internal.loader
Class BundleLoaderProxy

java.lang.Object
  extended by org.eclipse.osgi.internal.loader.BundleLoaderProxy
All Implemented Interfaces:
RequiredBundle

public class BundleLoaderProxy
extends java.lang.Object
implements RequiredBundle


Constructor Summary
BundleLoaderProxy(BundleHost bundle, BundleDescription description)
           
 
Method Summary
 PackageSource createPackageSource(ExportPackageDescription export, boolean storeSource)
           
 BundleLoader getBasicBundleLoader()
           
 Bundle getBundle()
          Returns the bundle associated with this required bundle.
 AbstractBundle getBundleHost()
           
 BundleLoader getBundleLoader()
           
 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 inUse()
           
 boolean isRemovalPending()
          Returns true if the bundle associated with this RequiredBundle object has been updated or uninstalled.
 boolean isStale()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BundleLoaderProxy

public BundleLoaderProxy(BundleHost bundle,
                         BundleDescription description)
Method Detail

getBundleLoader

public BundleLoader getBundleLoader()

getBasicBundleLoader

public BundleLoader getBasicBundleLoader()

getBundleHost

public AbstractBundle getBundleHost()

isStale

public boolean isStale()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getBundle

public Bundle getBundle()
Description copied from interface: RequiredBundle
Returns the bundle associated with this required bundle.

Specified by:
getBundle in interface RequiredBundle
Returns:
The bundle, or null if this RequiredBundle object has become stale.

getRequiringBundles

public Bundle[] 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 interface RequiredBundle
Returns:
An array of bundles currently requiring this required bundle, or null if this RequiredBundle object has become stale. The array will be empty if no bundles require this required package.

getSymbolicName

public java.lang.String getSymbolicName()
Description copied from interface: RequiredBundle
Returns the symbolic name of this required bundle.

Specified by:
getSymbolicName in interface RequiredBundle
Returns:
The symbolic name of this required bundle.

getVersion

public Version getVersion()
Description copied from interface: RequiredBundle
Returns the version of this required bundle.

Specified by:
getVersion in interface RequiredBundle
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
Returns true if the bundle associated with this RequiredBundle object has been updated or uninstalled.

Specified by:
isRemovalPending in interface RequiredBundle
Returns:
true if the required bundle has been updated or uninstalled, or if the RequiredBundle object has become stale; false otherwise.

inUse

public boolean inUse()

createPackageSource

public PackageSource createPackageSource(ExportPackageDescription export,
                                         boolean storeSource)


Copyright © 2007-2012 FuseSource, Corp.. All Rights Reserved.