org.smartcomps.twister.common.event
Class EventManager

java.lang.Object
  |
  +--org.smartcomps.twister.common.event.EventManager
All Implemented Interfaces:
LifecycleAwareResource

public class EventManager
extends java.lang.Object
implements LifecycleAwareResource

A simple event manager that forwards events to registered listeners. Listeners can be registered either through a property file or using the register(Listener listener) method.

See Also:
TwisterListener

Constructor Summary
EventManager()
           
 
Method Summary
 void create()
           
 void destroy()
           
static void fireError(java.lang.Exception error)
           
static void register(org.smartcomps.twister.common.event.TwisterListener listener)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventManager

public EventManager()
Method Detail

create

public void create()
            throws LifecycleException
Specified by:
create in interface LifecycleAwareResource
LifecycleException

start

public void start()
           throws LifecycleException
Specified by:
start in interface LifecycleAwareResource
LifecycleException

stop

public void stop()
          throws LifecycleException
Specified by:
stop in interface LifecycleAwareResource
LifecycleException

destroy

public void destroy()
             throws LifecycleException
Specified by:
destroy in interface LifecycleAwareResource
LifecycleException

register

public static void register(org.smartcomps.twister.common.event.TwisterListener listener)

fireError

public static void fireError(java.lang.Exception error)


Copyright © 2003 SmartComps. All Rights Reserved.