nl.gx.webmanager.services.event
Interface EventManagerService


public interface EventManagerService

Event manager service.

Author:
nikolam

Method Summary
 void publish(Event event)
          Publishes an event to the framework.
 void subscribe(EventHandler handler, Event.Type eventType, java.lang.Class<?> desiredScope)
          Subscribes an event handler.
 void unsubscribe(EventHandler handler, Event.Type eventType, java.lang.Class<?> desiredScope)
          Un-subscribes an event handler.
 

Method Detail

publish

void publish(Event event)
Publishes an event to the framework. Event delivery is kept local, that is, only subscribed handlers on this machine receive the event.

Parameters:
event - event to publish.

subscribe

void subscribe(EventHandler handler,
               Event.Type eventType,
               java.lang.Class<?> desiredScope)
Subscribes an event handler. Subscribed handlers are kept on this local machine.

Parameters:
handler - event handler.
eventType - type of event to subscribe to.
desiredScope - desired scope class of event.

unsubscribe

void unsubscribe(EventHandler handler,
                 Event.Type eventType,
                 java.lang.Class<?> desiredScope)
Un-subscribes an event handler.

Parameters:
handler - event handler to un-subscribe.
eventType - type of event to un-subscribe from.
desiredScope - desired scope class of event.


Copyright © 2007-2011 GX Software BV. All Rights Reserved.