Package org.osgi.service.typedevent
Interface UntypedEventHandler
-
@ConsumerType public interface UntypedEventHandlerListener for Untyped Events.UntypedEventHandlerobjects are registered with the Framework service registry and are notified with an event object when an event is sent.UntypedEventHandlerobjects must be registered with a service propertyTypedEventConstants.TYPED_EVENT_TOPICSwhose value is the list of topics in which the event handler is interested.For example:
String[] topics = new String[] { "com/isv/*" }; Hashtable ht = new Hashtable(); ht.put(EventConstants.TYPE_SAFE_EVENT_TOPICS, topics); context.registerService(UntypedEventHandler.class, this, ht);- Author:
- $Id: 24d2143a364d9f4d7d1b7e17d743d3c1a10b63a9 $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidnotifyUntyped(java.lang.String topic, java.util.Map<java.lang.String,java.lang.Object> event)Called by theTypedEventBusservice to notify the listener of an event.
-
-
-
Method Detail
-
notifyUntyped
void notifyUntyped(java.lang.String topic, java.util.Map<java.lang.String,java.lang.Object> event)Called by theTypedEventBusservice to notify the listener of an event.- Parameters:
topic- The topic to which the event was sentevent- The event that occurred.
-
-