public class BundleContextUtil extends Object
BundleContextUtil
class.Modifier and Type | Field and Description |
---|---|
static String |
FWK_PROP_WORK_CONTEXT
This property defines which bundle context the web console plugins use to
get the list of bundles and services.
|
static String |
WORK_CTX_OWN
The web console uses the own bundle context.
|
static String |
WORK_CTX_SYSTEM
The web console uses the system bundle context.
|
Constructor and Description |
---|
BundleContextUtil() |
Modifier and Type | Method and Description |
---|---|
static org.osgi.framework.BundleContext |
getWorkingBundleContext(org.osgi.framework.BundleContext bc)
Get the working bundle context: the bundle context to lookup bundles and
services.
|
public static final String FWK_PROP_WORK_CONTEXT
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.public static final String WORK_CTX_OWN
public static final String WORK_CTX_SYSTEM
Copyright © 2006–2020 The Apache Software Foundation. All rights reserved.