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
Modifier and TypeMethodDescriptionorg.osgi.framework.BundlegetBundle(boolean unwrap) Returns the bundle associated with this classloader.Methods inherited from interface org.osgi.framework.BundleReference
getBundle
-
Method Details
-
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 aDelegatingBundle. In such cases, the unwrap parameter controls whether this function returns theDelegatingBundleinstance or the main application bundle backing with theDelegatingBundle.- Parameters:
unwrap- If true and if the bundle associated with this classloader is aDelegatingBundle, this function will return the main application bundle backing with theDelegatingBundle. Otherwise, the bundle associated with this classloader is returned as is.- Returns:
- The bundle associated with this classloader.
-