Class BundleContextUtil


  • public class BundleContextUtil
    extends Object
    The BundleContextUtil class.
    • Field Detail

      • FWK_PROP_WORK_CONTEXT

        public static final String FWK_PROP_WORK_CONTEXT
        This property defines which bundle context the web console plugins use to get the list of bundles and services. It defaults to WORK_CTX_OWN. If WORK_CTX_SYSTEM is specified, the web console plugins use the system bundle context. If an invalid value is specified, the default is used. This setting effects only the built-in plugins.
        See Also:
        Constant Field Values
      • WORK_CTX_OWN

        public static final String WORK_CTX_OWN
        The web console uses the own bundle context. (default)
        See Also:
        Constant Field Values
      • WORK_CTX_SYSTEM

        public static final String WORK_CTX_SYSTEM
        The web console uses the system bundle context.
        See Also:
        Constant Field Values
    • Constructor Detail

      • BundleContextUtil

        public BundleContextUtil()
    • Method Detail

      • getWorkingBundleContext

        public static org.osgi.framework.BundleContext getWorkingBundleContext​(org.osgi.framework.BundleContext bc)
        Get the working bundle context: the bundle context to lookup bundles and services.