public abstract class LocalBundleContext extends Object
The getInvokerBundleContext()
method offers access to the
BundleContext
of the entity accessing an OSGi service. The invoked
entity can thus discover information about the caller context.
The functionality in this class might be used by a target object that needed access to resources on the invocation. However, this approach should not be used when there is a reasonable alternative, as it makes application code dependent on usage under AOP and the Spring Dynamic Modules and AOP framework in particular.
Constructor and Description |
---|
LocalBundleContext() |
Modifier and Type | Method and Description |
---|---|
static org.osgi.framework.BundleContext |
getInvokerBundleContext()
Try to get the current invoker bundle context.
|
Copyright © 2006–2017. All rights reserved.