| Package | Description |
|---|---|
| org.osgi.framework |
Framework Package Version 1.8.
|
| 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.
|
| Modifier and Type | Method | Description |
|---|---|---|
BundleContext |
Bundle.getBundleContext() |
Returns this bundle's
BundleContext. |
| Modifier and Type | Method | Description |
|---|---|---|
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.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
FindHook.find(BundleContext context,
java.util.Collection<Bundle> bundles) |
Find hook method.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
EventHook.event(BundleEvent event,
java.util.Collection<BundleContext> contexts) |
Bundle event hook method.
|
| Modifier and Type | Method | Description |
|---|---|---|
BundleContext |
ListenerHook.ListenerInfo.getBundleContext() |
Return the context of the bundle which added the listener.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
FindHook.find(BundleContext context,
java.lang.String name,
java.lang.String filter,
boolean allServices,
java.util.Collection<ServiceReference<?>> references) |
Find hook method.
|
| Modifier and Type | Method | Description |
|---|---|---|
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.
|
| Modifier and Type | Field | Description |
|---|---|---|
protected BundleContext |
BundleTracker.context |
The Bundle Context used by this
BundleTracker. |
protected BundleContext |
ServiceTracker.context |
The Bundle Context used by this
ServiceTracker. |
| Constructor | Description |
|---|---|
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,
java.lang.String clazz,
ServiceTrackerCustomizer<S,T> customizer) |
Create a
ServiceTracker on the specified class name. |
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
. |