Uses of Interface
org.osgi.framework.BundleContext
Packages that use BundleContext
Package
Description
Framework Package Version 1.10.
Framework Bundle Hooks Package Version 1.1.
Framework Service Hooks Package Version 1.1.
Tracker Package Version 1.5.
-
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 TypeMethodDescriptionvoidBundleActivator.start(BundleContext context) Called when this bundle is started so the Framework can perform the bundle-specific activities necessary to start this bundle.voidBundleActivator.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 TypeMethodDescriptionvoidFindHook.find(BundleContext context, Collection<Bundle> bundles) Find hook method.Method parameters in org.osgi.framework.hooks.bundle with type arguments of type BundleContextModifier and TypeMethodDescriptionvoidEventHook.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 TypeMethodDescriptionvoidFindHook.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 TypeMethodDescriptionvoidEventHook.event(ServiceEvent event, Collection<BundleContext> contexts) Deprecated.Event hook method.voidEventListenerHook.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 BundleContextBundleTracker.contextThe Bundle Context used by thisBundleTracker.protected final BundleContextServiceTracker.contextThe Bundle Context used by thisServiceTracker.Constructors in org.osgi.util.tracker with parameters of type BundleContextModifierConstructorDescriptionBundleTracker(BundleContext context, int stateMask, BundleTrackerCustomizer<T> customizer) Create aBundleTrackerfor bundles whose state is present in the specified state mask.ServiceTracker(BundleContext context, Class<S> clazz, ServiceTrackerCustomizer<S, T> customizer) Create aServiceTrackeron the specified class.ServiceTracker(BundleContext context, String clazz, ServiceTrackerCustomizer<S, T> customizer) Create aServiceTrackeron the specified class name.ServiceTracker(BundleContext context, Filter filter, ServiceTrackerCustomizer<S, T> customizer) Create aServiceTrackeron the specifiedFilterobject.ServiceTracker(BundleContext context, ServiceReference<S> reference, ServiceTrackerCustomizer<S, T> customizer) Create aServiceTrackeron the specifiedServiceReference.