Interface DelegatingBundleReference
-
- All Superinterfaces:
org.osgi.framework.BundleReference
- All Known Implementing Classes:
BundleClassLoader,BundleResourceClassLoader,EquinoxBundleClassLoader
public interface DelegatingBundleReference extends org.osgi.framework.BundleReferenceDelegatingBundleReference is based onBundleReferenceand provides access toDelegatingBundle.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.osgi.framework.BundlegetBundle(boolean unwrap)Returns the bundle associated with this classloader.
-
-
-
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 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.
-
-