public class MXEventManager
extends java.lang.Object
MXEventManager
will catalog MXEvent handlers and route the event to the method when it is processed.
This creates a more readable, and typesafe way of handling eventsModifier and Type | Class and Description |
---|---|
class |
MXEventManager.MXEventInfo |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_MANAGER_ID |
Constructor and Description |
---|
MXEventManager(java.lang.Object eventHandler)
Creates the manager, handling events registered in the classToManage.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContentType(java.lang.String mxeventName) |
MXEventManager.MXEventInfo |
getMXEventInfo(java.lang.String mxeventName) |
java.lang.String |
getTargetClassName() |
boolean |
hasEvent(java.lang.String mxeventName)
Returns true if we are manageing this event name
|
java.lang.Object |
processEvent(java.lang.String name,
WebClientEvent event,
WebClientSession wcs)
Processes an event for the given receiver.
|
public static final java.lang.String DEFAULT_MANAGER_ID
public MXEventManager(java.lang.Object eventHandler)
public java.lang.Object processEvent(java.lang.String name, WebClientEvent event, WebClientSession wcs) throws MXException, java.rmi.RemoteException
name
- receiver
- event
- wcs
- MXException
java.rmi.RemoteException
java.lang.IllegalAccessException
java.lang.IllegalArgumentException
java.lang.reflect.InvocationTargetException
public boolean hasEvent(java.lang.String mxeventName)
mxeventName
- public java.lang.String getContentType(java.lang.String mxeventName)
public MXEventManager.MXEventInfo getMXEventInfo(java.lang.String mxeventName)
public java.lang.String getTargetClassName()