com.partnersoft.system
Class SystemEventManager

java.lang.Object
  extended by com.partnersoft.system.SystemEventManager

public class SystemEventManager
extends java.lang.Object

Propagates system-level events for processing by modules and other means.

These events are not the standard tightly-coupled style of java.util.EventObject, but instead a looser, bus-style method. Events are injected into the manager, which then distributes them to each module. It is up to the modules to do anything about the event, generally by running a set of scripts.

You don't generally need to instantiate this class, instead grab the one returned by SystemServices.eventManager().

Copyright 2007 Partner Software, Inc.

Version:
$Id: SystemEventManager.java 1499 2008-09-04 17:22:17Z paul $
Author:
Paul Reavis

Constructor Summary
SystemEventManager()
           
 
Method Summary
 void fireEvent(java.lang.String sourceModule, java.lang.String event)
          Fires an event with the given source module and event name, with no parameters.
 void fireEvent(java.lang.String sourceModule, java.lang.String event, Naming<java.lang.Object> variables)
          Fires an event with the given source module, event name, and variable parameters.
 void fireEvent(java.lang.String sourceModule, java.lang.String event, java.lang.Object... variables)
          Fires an event with the given source module, event name, and variable parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemEventManager

public SystemEventManager()
Method Detail

fireEvent

public void fireEvent(java.lang.String sourceModule,
                      java.lang.String event)
Fires an event with the given source module and event name, with no parameters. The event is propagated to all modules which then can take action (or not) as they see fit.


fireEvent

public void fireEvent(java.lang.String sourceModule,
                      java.lang.String event,
                      Naming<java.lang.Object> variables)
Fires an event with the given source module, event name, and variable parameters. The event is propagated to all modules which then can take action (or not) as they see fit.


fireEvent

public void fireEvent(java.lang.String sourceModule,
                      java.lang.String event,
                      java.lang.Object... variables)
Fires an event with the given source module, event name, and variable parameters. The event is propagated to all modules which then can take action (or not) as they see fit.