UntypedEventHandler objects are registered with the Framework service
registry and are notified with an event object when an event is sent.
UntypedEventHandler objects must be registered with a service
property TypedEventConstants#TYPED_EVENT_TOPICS whose 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);
| Modifier and Type | Method and Description |
|---|---|
| public void | notifyUntyped(String
The topic to which the event was sent topic, Map<String, Object> The event that occurred. event)Called by the |
| notifyUntyped | back to summary |
|---|---|
| public void notifyUntyped(String topic, Map<String, Object> event) Called by the | |