org.apache.xbean.osgi.bundle.util
Interface DelegatingBundleReference

All Superinterfaces:
org.osgi.framework.BundleReference
All Known Implementing Classes:
BundleClassLoader, BundleResourceClassLoader, EquinoxBundleClassLoader

public interface DelegatingBundleReference
extends org.osgi.framework.BundleReference

DelegatingBundleReference is based on BundleReference and provides access to DelegatingBundle.


Method Summary
 org.osgi.framework.Bundle getBundle(boolean unwrap)
          Returns the bundle associated with this classloader.
 
Methods inherited from interface org.osgi.framework.BundleReference
getBundle
 

Method Detail

getBundle

org.osgi.framework.Bundle getBundle(boolean unwrap)
Returns the bundle associated with this classloader. In most cases the bundle associated with the classloader is a regular framework bundle. However, in some cases the bundle associated with the classloader is a DelegatingBundle. In such cases, the unwrap parameter controls whether this function returns the DelegatingBundle instance or the main application bundle backing with the DelegatingBundle.

Parameters:
unwrap - If true and if the bundle associated with this classloader is a DelegatingBundle, this function will return the main application bundle backing with the DelegatingBundle. Otherwise, the bundle associated with this classloader is returned as is.
Returns:
The bundle associated with this classloader.


Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.