nl.gx.webmanager.services.event
Interface EventManagerService


public interface EventManagerService

Event manager service.

Author:
nikolam

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

Method Detail

publish

void publish(Event event)
Publish an event to the framework.

Parameters:
event - event to publish.

subscribe

void subscribe(EventHandler handler,
               Event.Type eventType,
               java.lang.Class<?> desiredScope)
Subscribe an event handler.

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-subscribe event handler.

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


Copyright © 2007-2010 GX creative online development BV. All Rights Reserved.