org.mule.impl.internal.events
Class CustomEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byorg.mule.umo.manager.UMOServerEvent
          extended byorg.mule.impl.internal.events.CustomEvent
All Implemented Interfaces:
java.io.Serializable

public class CustomEvent
extends UMOServerEvent

CustomEvent Custom events can be used by components and other objects such as routers, transformers, agents, etc to communicate a change of state to each other. The Action value for the event is abitary. However care should be taken not to set the action code to an existing action code. To ensure this doesn't happen always set the action code greater than the CUSTOM_ACTION_START_RANGE.

Version:
$Revision: 1.4 $
Author:
Ross Mason
See Also:
CustomEventListener, Serialized Form

Field Summary
 
Fields inherited from class org.mule.umo.manager.UMOServerEvent
action, ADMIN_EVENT_ACTION_START_RANGE, COMPONENT_EVENT_ACTION_START_RANGE, CUSTOM_EVENT_ACTION_START_RANGE, MANAGEMENT_EVENT_ACTION_START_RANGE, MANAGER_EVENT_ACTION_START_RANGE, MODEL_EVENT_ACTION_START_RANGE, NULL_ACTION, NULL_MESSAGE, SECURITY_EVENT_ACTION_START_RANGE
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
CustomEvent(java.lang.Object message, int action)
          Creates a custom action event
 
Method Summary
protected  java.lang.String getActionName(int action)
           
protected  java.lang.String[] getActionNames()
           
 
Methods inherited from class org.mule.umo.manager.UMOServerEvent
getAction, getPayloadToString, toString
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CustomEvent

public CustomEvent(java.lang.Object message,
                   int action)
Creates a custom action event

Parameters:
message - the message to associate with the event
action - the action code for the event
Throws:
java.lang.IllegalArgumentException - if the action value is less than CUSTOM_ACTION_START_RANGE
Method Detail

getActionName

protected java.lang.String getActionName(int action)
Specified by:
getActionName in class UMOServerEvent

getActionNames

protected java.lang.String[] getActionNames()


Copyright © 2003-2005 SymphonySoft Limited. All Rights Reserved.