| Package | Description |
|---|---|
| org.apache.felix.framework | |
| 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 | Class and Description |
|---|---|
(package private) class |
BundleContextImpl |
| Modifier and Type | Field and Description |
|---|---|
private BundleContext |
BundleImpl.m_context |
| Modifier and Type | Method and Description |
|---|---|
(package private) BundleContext |
BundleImpl._getBundleContext() |
BundleContext |
BundleImpl.getBundleContext() |
| Modifier and Type | Method and Description |
|---|---|
(package private) Bundle |
Felix.getBundle(BundleContext bc,
long id)
Implementation for BundleContext.getBundle().
|
(package private) Bundle[] |
Felix.getBundles(BundleContext bc)
Implementation for BundleContext.getBundles().
|
(package private) void |
BundleImpl.setBundleContext(BundleContext context) |
void |
Felix.SystemBundleActivator.start(BundleContext context) |
void |
URLHandlersActivator.start(BundleContext context) |
void |
Felix.SystemBundleActivator.stop(BundleContext context) |
void |
URLHandlersActivator.stop(BundleContext context) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
FelixBundleContext |
| Modifier and Type | Field and Description |
|---|---|
private BundleContext |
ListenerInfo.m_context |
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map<BundleContext,java.util.List<ListenerInfo>> |
EventDispatcher.m_bndlListeners |
private java.util.Map<BundleContext,java.util.List<ListenerInfo>> |
EventDispatcher.m_fwkListeners |
java.util.Map<BundleContext,java.util.List<ListenerInfo>> |
EventDispatcher.Request.m_listeners |
private java.util.Map<BundleContext,java.util.List<ListenerInfo>> |
EventDispatcher.m_svcListeners |
private java.util.Map<BundleContext,java.util.List<ListenerInfo>> |
EventDispatcher.m_syncBndlListeners |
| Modifier and Type | Method and Description |
|---|---|
BundleContext |
ListenerInfo.getBundleContext() |
| Modifier and Type | Method and Description |
|---|---|
private static java.util.Map<BundleContext,java.util.List<ListenerInfo>> |
EventDispatcher.addListenerInfo(java.util.Map<BundleContext,java.util.List<ListenerInfo>> listeners,
ListenerInfo info) |
private <T> java.util.Set<BundleContext> |
EventDispatcher.createWhitelistFromHooks(java.util.EventObject event,
Framework felix,
java.util.Map<BundleContext,java.util.List<ListenerInfo>> listeners1,
java.util.Map<BundleContext,java.util.List<ListenerInfo>> listeners2,
java.lang.Class<T> hookClass) |
private java.util.Map<BundleContext,java.util.List<ListenerInfo>> |
EventDispatcher.filterListenersUsingHooks(ServiceEvent event,
Framework felix,
java.util.Map<BundleContext,java.util.List<ListenerInfo>> listeners) |
private static java.util.Map<BundleContext,java.util.List<ListenerInfo>> |
EventDispatcher.removeListenerInfo(java.util.Map<BundleContext,java.util.List<ListenerInfo>> listeners,
BundleContext bc,
int idx) |
private static java.util.Map<BundleContext,java.util.List<ListenerInfo>> |
EventDispatcher.removeListenerInfos(java.util.Map<BundleContext,java.util.List<ListenerInfo>> listeners,
BundleContext bc) |
private static java.util.Map<BundleContext,java.util.List<ListenerInfo>> |
EventDispatcher.updateListenerInfo(java.util.Map<BundleContext,java.util.List<ListenerInfo>> listeners,
int idx,
ListenerInfo info) |
| Modifier and Type | Method and Description |
|---|---|
Filter |
EventDispatcher.addListener(BundleContext bc,
java.lang.Class clazz,
java.util.EventListener l,
Filter filter) |
void |
SecureAction.invokeBundleFindHook(FindHook fh,
BundleContext bc,
java.util.Collection<Bundle> bundles) |
void |
SecureAction.invokeServiceFindHook(FindHook fh,
BundleContext context,
java.lang.String name,
java.lang.String filter,
boolean allServices,
java.util.Collection<ServiceReference<?>> references) |
ListenerHook.ListenerInfo |
EventDispatcher.removeListener(BundleContext bc,
java.lang.Class clazz,
java.util.EventListener l) |
private static java.util.Map<BundleContext,java.util.List<ListenerInfo>> |
EventDispatcher.removeListenerInfo(java.util.Map<BundleContext,java.util.List<ListenerInfo>> listeners,
BundleContext bc,
int idx) |
private static java.util.Map<BundleContext,java.util.List<ListenerInfo>> |
EventDispatcher.removeListenerInfos(java.util.Map<BundleContext,java.util.List<ListenerInfo>> listeners,
BundleContext bc) |
void |
EventDispatcher.removeListeners(BundleContext bc) |
void |
SecureAction.startActivator(BundleActivator activator,
BundleContext context) |
void |
SecureAction.stopActivator(BundleActivator activator,
BundleContext context) |
Filter |
EventDispatcher.updateListener(BundleContext bc,
java.lang.Class clazz,
java.util.EventListener l,
Filter filter) |
| Modifier and Type | Method and Description |
|---|---|
private static java.util.Map<BundleContext,java.util.List<ListenerInfo>> |
EventDispatcher.addListenerInfo(java.util.Map<BundleContext,java.util.List<ListenerInfo>> listeners,
ListenerInfo info) |
private <T> java.util.Set<BundleContext> |
EventDispatcher.createWhitelistFromHooks(java.util.EventObject event,
Framework felix,
java.util.Map<BundleContext,java.util.List<ListenerInfo>> listeners1,
java.util.Map<BundleContext,java.util.List<ListenerInfo>> listeners2,
java.lang.Class<T> hookClass) |
private <T> java.util.Set<BundleContext> |
EventDispatcher.createWhitelistFromHooks(java.util.EventObject event,
Framework felix,
java.util.Map<BundleContext,java.util.List<ListenerInfo>> listeners1,
java.util.Map<BundleContext,java.util.List<ListenerInfo>> listeners2,
java.lang.Class<T> hookClass) |
private java.util.Map<BundleContext,java.util.List<ListenerInfo>> |
EventDispatcher.filterListenersUsingHooks(ServiceEvent event,
Framework felix,
java.util.Map<BundleContext,java.util.List<ListenerInfo>> listeners) |
private static void |
EventDispatcher.fireEventAsynchronously(EventDispatcher dispatcher,
int type,
java.util.Map<BundleContext,java.util.List<ListenerInfo>> listeners,
java.util.EventObject event) |
private static void |
EventDispatcher.fireEventImmediately(EventDispatcher dispatcher,
int type,
java.util.Map<BundleContext,java.util.List<ListenerInfo>> listeners,
java.util.EventObject event,
java.util.Dictionary oldProps) |
void |
SecureAction.invokeBundleEventHook(EventHook eh,
BundleEvent event,
java.util.Collection<BundleContext> contexts) |
void |
SecureAction.invokeServiceEventHook(EventHook eh,
ServiceEvent event,
java.util.Collection<BundleContext> contexts) |
void |
SecureAction.invokeServiceEventListenerHook(EventListenerHook elh,
ServiceEvent event,
java.util.Map<BundleContext,java.util.Collection<ListenerHook.ListenerInfo>> listeners) |
private static java.util.Map<BundleContext,java.util.List<ListenerInfo>> |
EventDispatcher.removeListenerInfo(java.util.Map<BundleContext,java.util.List<ListenerInfo>> listeners,
BundleContext bc,
int idx) |
private static java.util.Map<BundleContext,java.util.List<ListenerInfo>> |
EventDispatcher.removeListenerInfos(java.util.Map<BundleContext,java.util.List<ListenerInfo>> listeners,
BundleContext bc) |
private static java.util.Map<BundleContext,java.util.List<ListenerInfo>> |
EventDispatcher.updateListenerInfo(java.util.Map<BundleContext,java.util.List<ListenerInfo>> listeners,
int idx,
ListenerInfo info) |
| Constructor and Description |
|---|
ListenerInfo(Bundle bundle,
BundleContext context,
java.lang.Class listenerClass,
java.util.EventListener listener,
Filter filter,
java.lang.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,
java.util.Collection<Bundle> bundles)
Find hook method.
|
| Modifier and Type | Method and Description |
|---|---|
void |
EventHook.event(BundleEvent event,
java.util.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,
java.lang.String name,
java.lang.String filter,
boolean allServices,
java.util.Collection<ServiceReference<?>> references)
Find hook method.
|
| Modifier and Type | Method and 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 and Description |
|---|---|
protected BundleContext |
BundleTracker.context
The Bundle Context used by this
BundleTracker. |
protected BundleContext |
ServiceTracker.context
The Bundle Context used by this
ServiceTracker. |
| 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,
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. |