Package | Description |
---|---|
org.apache.felix.framework.ext | |
org.apache.felix.framework.util | |
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 | Interface and Description |
---|---|
interface |
FelixBundleContext |
Modifier and Type | Method and Description |
---|---|
BundleContext |
ListenerInfo.getBundleContext() |
Modifier and Type | Method and Description |
---|---|
Filter |
EventDispatcher.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) |
ListenerHook.ListenerInfo |
EventDispatcher.removeListener(BundleContext bc,
Class clazz,
EventListener l) |
void |
EventDispatcher.removeListeners(BundleContext bc) |
void |
SecureAction.startActivator(BundleActivator activator,
BundleContext context) |
void |
SecureAction.stopActivator(BundleActivator activator,
BundleContext context) |
Filter |
EventDispatcher.updateListener(BundleContext bc,
Class clazz,
EventListener l,
Filter filter) |
Modifier and Type | Method and Description |
---|---|
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) |
Constructor and Description |
---|
ListenerInfo(Bundle bundle,
BundleContext context,
Class listenerClass,
EventListener listener,
Filter filter,
Object acc,
boolean removed) |
Modifier and Type | Method and Description |
---|---|
BundleContext |
Bundle.getBundleContext()
Returns this bundle's
BundleContext . |
Modifier and Type | Method and 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 and Description |
---|---|
void |
FindHook.find(BundleContext context,
Collection<Bundle> bundles)
Find hook method.
|
Modifier and Type | Method and Description |
---|---|
void |
EventHook.event(BundleEvent event,
Collection<BundleContext> contexts)
Bundle event hook method.
|
Modifier and Type | Method and Description |
---|---|
BundleContext |
ListenerHook.ListenerInfo.getBundleContext()
Return the context of the bundle which added the listener.
|
Modifier and Type | Method and Description |
---|---|
void |
FindHook.find(BundleContext context,
String name,
String filter,
boolean allServices,
Collection<ServiceReference<?>> references)
Find hook method.
|
Modifier and Type | Method and Description |
---|---|
void |
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.
|
Modifier and Type | Field and Description |
---|---|
protected BundleContext |
ServiceTracker.context
The Bundle Context used by this
ServiceTracker . |
protected BundleContext |
BundleTracker.context
The Bundle Context used by this
BundleTracker . |
Constructor and 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,
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,
String clazz,
ServiceTrackerCustomizer<S,T> customizer)
Create a
ServiceTracker on the specified class name. |
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.