Interface DelegatingBundleReference

    • 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.
      • 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.