org.mule.impl.internal.events
Class CustomEvent
java.lang.Object
java.util.EventObject
org.mule.umo.UMOServerEvent
org.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.1.1.1 $
- Author:
- Ross Mason
- See Also:
CustomEventListener
,
Serialized Form
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
CustomEvent(java.lang.Object message,
int action)
Creates a custom action event |
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 |
CustomEvent
public CustomEvent(java.lang.Object message,
int action)
- Creates a custom action event
- Parameters:
message
- the message to associate with the eventaction
- the action code for the event
- Throws:
java.lang.IllegalArgumentException
- if the action value is less than CUSTOM_ACTION_START_RANGE
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.