|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JavaAction
Creates a Java object from a class, then invokes a method on the newly created object. The class must implement the flux.ActionListener interface. When the job executes this action, the object returned by the listener is added to the flow context.
At a minimum, a listener must be set when initializing a Java action.
The Java Action returns its result in the flow context variable "RESULT". The following table contains more information on accessing and using the result.
Flow Context Variable | Java Type | Description |
---|---|---|
RESULT | java.lang.Object | The object returned from the actionFired() method of the listener that this Java Action invokes. |
Method Summary | |
---|---|
java.lang.Object |
getKey()
Returns optional data that is passed to the Java object to provide context as it is invoked. |
java.lang.Class |
getListener()
Returns the listener that receives a callback. |
java.lang.String |
getListenerAsString()
Returns the listener that receives a callback. |
void |
setKey(java.lang.Object key)
Sets optional data that is passed to the Java object to provide context as it is invoked. |
void |
setListener(java.lang.Class listener)
Sets the listener that receives a callback. |
void |
setListenerAsString(java.lang.String listener)
Sets the listener that receives a callback. |
Methods inherited from interface flux.runtimedatamap.RuntimeDataMap |
---|
getRuntimeDataMap, setRuntimeDataMap |
Method Detail |
---|
java.lang.Object getKey()
java.lang.Class getListener() throws EngineException
EngineException
- If a system error occurs.ActionListener
,
getListenerAsString()
java.lang.String getListenerAsString()
ActionListener
,
getListener()
void setKey(java.lang.Object key)
key
- Optional data that is passed to the Java object to provide
context as it is invoked.void setListener(java.lang.Class listener)
listener
- The listener that receives a callback. The listener class
must implement the flux.ActionListener interface.ActionListener
,
setListenerAsString(java.lang.String)
void setListenerAsString(java.lang.String listener)
listener
- The fully-qualified name of the listener class that
receives a callback. The listener class must implement the
flux.ActionListener interface.ActionListener
,
setListener(java.lang.Class)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |