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 onBundleReference
and provides access toDelegatingBundle
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.osgi.framework.Bundle
getBundle(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 theDelegatingBundle
instance 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.
-
-