public class EventDispatcher extends Object
Constructor and Description |
---|
EventDispatcher(ServiceRegistry registry) |
Modifier and Type | Method and Description |
---|---|
org.osgi.framework.Filter |
addListener(org.osgi.framework.BundleContext bc,
Class clazz,
EventListener l,
org.osgi.framework.Filter filter) |
void |
fireBundleEvent(org.osgi.framework.BundleEvent event) |
void |
fireFrameworkEvent(org.osgi.framework.FrameworkEvent event) |
void |
fireServiceEvent(org.osgi.framework.ServiceEvent event,
Dictionary<String,?> oldProps,
org.osgi.framework.Bundle framework) |
List<org.osgi.framework.hooks.service.ListenerHook.ListenerInfo> |
getAllServiceListeners()
Returns all existing service listener information into a List of
ListenerHook.ListenerInfo objects.
|
org.osgi.framework.hooks.service.ListenerHook.ListenerInfo |
removeListener(org.osgi.framework.BundleContext bc,
Class clazz,
EventListener l) |
void |
removeListeners(org.osgi.framework.BundleContext bc) |
void |
startDispatching() |
void |
stopDispatching() |
org.osgi.framework.Filter |
updateListener(org.osgi.framework.BundleContext bc,
Class clazz,
EventListener l,
org.osgi.framework.Filter filter) |
public EventDispatcher(ServiceRegistry registry)
public void startDispatching()
public void stopDispatching()
public org.osgi.framework.Filter addListener(org.osgi.framework.BundleContext bc, Class clazz, EventListener l, org.osgi.framework.Filter filter)
public org.osgi.framework.hooks.service.ListenerHook.ListenerInfo removeListener(org.osgi.framework.BundleContext bc, Class clazz, EventListener l)
public void removeListeners(org.osgi.framework.BundleContext bc)
public org.osgi.framework.Filter updateListener(org.osgi.framework.BundleContext bc, Class clazz, EventListener l, org.osgi.framework.Filter filter)
public List<org.osgi.framework.hooks.service.ListenerHook.ListenerInfo> getAllServiceListeners()
public void fireFrameworkEvent(org.osgi.framework.FrameworkEvent event)
public void fireBundleEvent(org.osgi.framework.BundleEvent event)
public void fireServiceEvent(org.osgi.framework.ServiceEvent event, Dictionary<String,?> oldProps, org.osgi.framework.Bundle framework)
Copyright © 2006-2015 The Apache Software Foundation. All Rights Reserved.