Uses of Interface
org.osgi.framework.BundleContext
Packages that use BundleContext
Package
Description
Framework Package Version 1.8.
Framework Bundle Hooks Package Version 1.1.
Framework Service Hooks Package Version 1.1.
Tracker Package Version 1.5.
-
Uses of BundleContext in org.apache.felix.framework
Classes in org.apache.felix.framework that implement BundleContextFields in org.apache.felix.framework declared as BundleContextModifier and TypeFieldDescriptionprivate BundleContext
BundleImpl.m_context
private BundleContext
Logger.m_context
Methods in org.apache.felix.framework that return BundleContextModifier and TypeMethodDescription(package private) BundleContext
BundleImpl._getBundleContext()
BundleImpl.getBundleContext()
Methods in org.apache.felix.framework with parameters of type BundleContextModifier and TypeMethodDescription(package private) Bundle
Felix.getBundle
(BundleContext bc, long id) Implementation for BundleContext.getBundle().(package private) Bundle[]
Felix.getBundles
(BundleContext bc) Implementation for BundleContext.getBundles().ServiceRegistry.registerService
(BundleContext context, String[] classNames, Object svcObj, Dictionary dict) (package private) void
BundleImpl.setBundleContext
(BundleContext context) protected void
Logger.setSystemBundleContext
(BundleContext context) void
Felix.SystemBundleActivator.start
(BundleContext context) void
URLHandlersActivator.start
(BundleContext context) void
Felix.SystemBundleActivator.stop
(BundleContext context) void
URLHandlersActivator.stop
(BundleContext context) -
Uses of BundleContext in org.apache.felix.framework.ext
Subinterfaces of BundleContext in org.apache.felix.framework.ext -
Uses of BundleContext in org.apache.felix.framework.util
Fields in org.apache.felix.framework.util declared as BundleContextFields in org.apache.felix.framework.util with type parameters of type BundleContextModifier and TypeFieldDescriptionprivate Map
<BundleContext, List<ListenerInfo>> EventDispatcher.m_bndlListeners
private Map
<BundleContext, List<ListenerInfo>> EventDispatcher.m_fwkListeners
EventDispatcher.Request.m_listeners
private Map
<BundleContext, List<ListenerInfo>> EventDispatcher.m_svcListeners
private Map
<BundleContext, List<ListenerInfo>> EventDispatcher.m_syncBndlListeners
Methods in org.apache.felix.framework.util that return BundleContextMethods in org.apache.felix.framework.util that return types with arguments of type BundleContextModifier and TypeMethodDescriptionprivate static Map
<BundleContext, List<ListenerInfo>> EventDispatcher.addListenerInfo
(Map<BundleContext, List<ListenerInfo>> listeners, ListenerInfo info) private <T> Set
<BundleContext> EventDispatcher.createWhitelistFromHooks
(EventObject event, Framework felix, Map<BundleContext, List<ListenerInfo>> listeners1, Map<BundleContext, List<ListenerInfo>> listeners2, Class<T> hookClass) private Map
<BundleContext, List<ListenerInfo>> EventDispatcher.filterListenersUsingHooks
(ServiceEvent event, Framework felix, Map<BundleContext, List<ListenerInfo>> listeners) private static Map
<BundleContext, List<ListenerInfo>> EventDispatcher.removeListenerInfo
(Map<BundleContext, List<ListenerInfo>> listeners, BundleContext bc, int idx) private static Map
<BundleContext, List<ListenerInfo>> EventDispatcher.removeListenerInfos
(Map<BundleContext, List<ListenerInfo>> listeners, BundleContext bc) private static Map
<BundleContext, List<ListenerInfo>> EventDispatcher.updateListenerInfo
(Map<BundleContext, List<ListenerInfo>> listeners, int idx, ListenerInfo info) Methods in org.apache.felix.framework.util with parameters of type BundleContextModifier and TypeMethodDescriptionEventDispatcher.addListener
(BundleContext bc, Class clazz, EventListener l, Filter filter) void
SecureAction.invokeBundleFindHook
(FindHook fh, BundleContext bc, Collection<Bundle> bundles) void
SecureAction.invokeServiceFindHook
(FindHook fh, BundleContext context, String name, String filter, boolean allServices, Collection<ServiceReference<?>> references) EventDispatcher.removeListener
(BundleContext bc, Class clazz, EventListener l) private static Map
<BundleContext, List<ListenerInfo>> EventDispatcher.removeListenerInfo
(Map<BundleContext, List<ListenerInfo>> listeners, BundleContext bc, int idx) private static Map
<BundleContext, List<ListenerInfo>> EventDispatcher.removeListenerInfos
(Map<BundleContext, List<ListenerInfo>> listeners, BundleContext bc) void
EventDispatcher.removeListeners
(BundleContext bc) void
SecureAction.startActivator
(BundleActivator activator, BundleContext context) void
SecureAction.stopActivator
(BundleActivator activator, BundleContext context) EventDispatcher.updateListener
(BundleContext bc, Class clazz, EventListener l, Filter filter) Method parameters in org.apache.felix.framework.util with type arguments of type BundleContextModifier and TypeMethodDescriptionprivate static Map
<BundleContext, List<ListenerInfo>> EventDispatcher.addListenerInfo
(Map<BundleContext, List<ListenerInfo>> listeners, ListenerInfo info) private <T> Set
<BundleContext> EventDispatcher.createWhitelistFromHooks
(EventObject event, Framework felix, Map<BundleContext, List<ListenerInfo>> listeners1, Map<BundleContext, List<ListenerInfo>> listeners2, Class<T> hookClass) private Map
<BundleContext, List<ListenerInfo>> EventDispatcher.filterListenersUsingHooks
(ServiceEvent event, Framework felix, Map<BundleContext, List<ListenerInfo>> listeners) private static void
EventDispatcher.fireEventAsynchronously
(EventDispatcher dispatcher, int type, Map<BundleContext, List<ListenerInfo>> listeners, EventObject event) private static void
EventDispatcher.fireEventImmediately
(EventDispatcher dispatcher, int type, Map<BundleContext, List<ListenerInfo>> listeners, EventObject event, Dictionary oldProps) void
SecureAction.invokeBundleEventHook
(EventHook eh, BundleEvent event, Collection<BundleContext> contexts) void
SecureAction.invokeServiceEventHook
(EventHook eh, ServiceEvent event, Collection<BundleContext> contexts) void
SecureAction.invokeServiceEventListenerHook
(EventListenerHook elh, ServiceEvent event, Map<BundleContext, Collection<ListenerHook.ListenerInfo>> listeners) private static Map
<BundleContext, List<ListenerInfo>> EventDispatcher.removeListenerInfo
(Map<BundleContext, List<ListenerInfo>> listeners, BundleContext bc, int idx) private static Map
<BundleContext, List<ListenerInfo>> EventDispatcher.removeListenerInfos
(Map<BundleContext, List<ListenerInfo>> listeners, BundleContext bc) private static Map
<BundleContext, List<ListenerInfo>> EventDispatcher.updateListenerInfo
(Map<BundleContext, List<ListenerInfo>> listeners, int idx, ListenerInfo info) Constructors in org.apache.felix.framework.util with parameters of type BundleContextModifierConstructorDescriptionListenerInfo
(Bundle bundle, BundleContext context, Class listenerClass, EventListener listener, Filter filter, Object acc, boolean removed) -
Uses of BundleContext in org.osgi.framework
Methods in org.osgi.framework that return BundleContextMethods in org.osgi.framework with parameters of type BundleContextModifier and TypeMethodDescriptionvoid
BundleActivator.start
(BundleContext context) Called when this bundle is started so the Framework can perform the bundle-specific activities necessary to start this bundle.void
BundleActivator.stop
(BundleContext context) Called when this bundle is stopped so the Framework can perform the bundle-specific activities necessary to stop the bundle. -
Uses of BundleContext in org.osgi.framework.hooks.bundle
Methods in org.osgi.framework.hooks.bundle with parameters of type BundleContextModifier and TypeMethodDescriptionvoid
FindHook.find
(BundleContext context, Collection<Bundle> bundles) Find hook method.Method parameters in org.osgi.framework.hooks.bundle with type arguments of type BundleContextModifier and TypeMethodDescriptionvoid
EventHook.event
(BundleEvent event, Collection<BundleContext> contexts) Bundle event hook method. -
Uses of BundleContext in org.osgi.framework.hooks.service
Methods in org.osgi.framework.hooks.service that return BundleContextModifier and TypeMethodDescriptionListenerHook.ListenerInfo.getBundleContext()
Return the context of the bundle which added the listener.Methods in org.osgi.framework.hooks.service with parameters of type BundleContextModifier and TypeMethodDescriptionvoid
FindHook.find
(BundleContext context, String name, String filter, boolean allServices, Collection<ServiceReference<?>> references) Find hook method.Method parameters in org.osgi.framework.hooks.service with type arguments of type BundleContextModifier and TypeMethodDescriptionvoid
EventHook.event
(ServiceEvent event, Collection<BundleContext> contexts) Deprecated.Event hook method.void
EventListenerHook.event
(ServiceEvent event, Map<BundleContext, Collection<ListenerHook.ListenerInfo>> listeners) Event listener hook method. -
Uses of BundleContext in org.osgi.util.tracker
Fields in org.osgi.util.tracker declared as BundleContextModifier and TypeFieldDescriptionprotected final BundleContext
BundleTracker.context
The Bundle Context used by thisBundleTracker
.protected final BundleContext
ServiceTracker.context
The Bundle Context used by thisServiceTracker
.Constructors in org.osgi.util.tracker with parameters of type BundleContextModifierConstructorDescriptionBundleTracker
(BundleContext context, int stateMask, BundleTrackerCustomizer<T> customizer) Create aBundleTracker
for bundles whose state is present in the specified state mask.ServiceTracker
(BundleContext context, Class<S> clazz, ServiceTrackerCustomizer<S, T> customizer) Create aServiceTracker
on the specified class.ServiceTracker
(BundleContext context, String clazz, ServiceTrackerCustomizer<S, T> customizer) Create aServiceTracker
on the specified class name.ServiceTracker
(BundleContext context, Filter filter, ServiceTrackerCustomizer<S, T> customizer) Create aServiceTracker
on the specifiedFilter
object.ServiceTracker
(BundleContext context, ServiceReference<S> reference, ServiceTrackerCustomizer<S, T> customizer) Create aServiceTracker
on the specifiedServiceReference
.