|
OSGi™ Core Release 5 |
|||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use BundleContext | |
|---|---|
| org.osgi.framework | Framework Package Version 1.7. |
| org.osgi.framework.hooks.bundle | Framework Bundle Hooks Package Version 1.1. |
| org.osgi.framework.hooks.service | Framework Service Hooks Package Version 1.1. |
| org.osgi.util.tracker | Tracker Package Version 1.5. |
| Uses of BundleContext in org.osgi.framework |
|---|
| Methods in org.osgi.framework that return BundleContext | |
|---|---|
BundleContext |
Bundle.getBundleContext()
Returns this bundle's BundleContext. |
| Methods in org.osgi.framework with parameters of type BundleContext | |
|---|---|
void |
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 BundleContext | |
|---|---|
void |
FindHook.find(BundleContext context,
java.util.Collection<Bundle> bundles)
Find hook method. |
| Method parameters in org.osgi.framework.hooks.bundle with type arguments of type BundleContext | |
|---|---|
void |
EventHook.event(BundleEvent event,
java.util.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 BundleContext | |
|---|---|
BundleContext |
ListenerHook.ListenerInfo.getBundleContext()
Return the context of the bundle which added the listener. |
| Methods in org.osgi.framework.hooks.service with parameters of type BundleContext | |
|---|---|
void |
FindHook.find(BundleContext context,
java.lang.String name,
java.lang.String filter,
boolean allServices,
java.util.Collection<ServiceReference<?>> references)
Find hook method. |
| Method parameters in org.osgi.framework.hooks.service with type arguments of type BundleContext | |
|---|---|
void |
EventHook.event(ServiceEvent event,
java.util.Collection<BundleContext> contexts)
Deprecated. Event hook method. |
void |
EventListenerHook.event(ServiceEvent event,
java.util.Map<BundleContext,java.util.Collection<ListenerHook.ListenerInfo>> listeners)
Event listener hook method. |
| Uses of BundleContext in org.osgi.util.tracker |
|---|
| Fields in org.osgi.util.tracker declared as BundleContext | |
|---|---|
protected BundleContext |
ServiceTracker.context
The Bundle Context used by this ServiceTracker. |
protected BundleContext |
BundleTracker.context
The Bundle Context used by this BundleTracker. |
| Constructors in org.osgi.util.tracker with parameters of type BundleContext | |
|---|---|
BundleTracker(BundleContext context,
int stateMask,
BundleTrackerCustomizer<T> customizer)
Create a BundleTracker for bundles whose state is present in the
specified state mask. |
|
ServiceTracker(BundleContext context,
java.lang.Class<S> clazz,
ServiceTrackerCustomizer<S,T> customizer)
Create a ServiceTracker on the specified class. |
|
ServiceTracker(BundleContext context,
Filter filter,
ServiceTrackerCustomizer<S,T> customizer)
Create a ServiceTracker on the specified Filter object. |
|
ServiceTracker(BundleContext context,
ServiceReference<S> reference,
ServiceTrackerCustomizer<S,T> customizer)
Create a ServiceTracker on the specified ServiceReference
. |
|
ServiceTracker(BundleContext context,
java.lang.String clazz,
ServiceTrackerCustomizer<S,T> customizer)
Create a ServiceTracker on the specified class name. |
|
|
OSGi™ Core Release 5 |
|||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||