za.org.coefficient.events
Class CoefficientEvents

java.lang.Object
  extended by za.org.coefficient.events.CoefficientEvents

public class CoefficientEvents
extends java.lang.Object

Class: CoefficientEvents Description: Utility class to publish events and register handlers

Author:
tfogwill

Field Summary
private static EJBEventInvoker ejbInvoker
          Invoker to send Events and register handlers in EJB world
private static boolean RUN_AS_EJB
          Running as EJB, or in webapp
private static WebappEventInvoker webappInvoker
          Invoker to send Events and register handlers in Webapp world
 
Constructor Summary
CoefficientEvents()
           
 
Method Summary
static void publishEvent(CoefficientEvent event)
          Utility method to publish events to the queue.
static void registerEventHandler(java.lang.Class eventType, CoefficientEventHandler handler)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RUN_AS_EJB

private static boolean RUN_AS_EJB
Running as EJB, or in webapp


ejbInvoker

private static EJBEventInvoker ejbInvoker
Invoker to send Events and register handlers in EJB world


webappInvoker

private static WebappEventInvoker webappInvoker
Invoker to send Events and register handlers in Webapp world

Constructor Detail

CoefficientEvents

public CoefficientEvents()
Method Detail

publishEvent

public static void publishEvent(CoefficientEvent event)
Utility method to publish events to the queue.

Parameters:
event - The event to be published

registerEventHandler

public static void registerEventHandler(java.lang.Class eventType,
                                        CoefficientEventHandler handler)


Copyright CSIR. All Rights Reserved.