org.jboss.soa.esb.actions
Class ActionUtils

java.lang.Object
  extended by org.jboss.soa.esb.actions.ActionUtils

public class ActionUtils
extends java.lang.Object

Contains utility methods for actions

Since:
Version 4.0
Author:
schifest@heuristica.com.ar

Field Summary
static java.lang.String BEFORE_ACTION
           
 
Constructor Summary
ActionUtils()
           
 
Method Summary
static void copyCurrentToPrevious(Message message)
          Copy 'current object' to a temporary holder within message
static NotificationList getNotifyList(ConfigTree tree, java.lang.String type)
           
static java.lang.Object getTaskBeforeObject(Message message)
          Obtain previous 'current object' from standard spot within message
static java.lang.Object getTaskObject(Message message)
          Obtain the current object from standard spot within message
static java.lang.Object setTaskObject(Message message, java.lang.Object obj)
          Put current object in standard spot within message
NULL values are not stored
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BEFORE_ACTION

public static final java.lang.String BEFORE_ACTION
See Also:
Constant Field Values
Constructor Detail

ActionUtils

public ActionUtils()
Method Detail

getTaskObject

public static java.lang.Object getTaskObject(Message message)
Obtain the current object from standard spot within message

Parameters:
message - - from where to obtain the 'current object'
Returns:
Object stored in Body with key ActionProcessor.CURRENT_OBJECT

getTaskBeforeObject

public static java.lang.Object getTaskBeforeObject(Message message)
Obtain previous 'current object' from standard spot within message

Parameters:
message - - from where to obtain the value
Returns:
Object stored in Body with key ActionProcessor.BEFORE_ACTION

copyCurrentToPrevious

public static void copyCurrentToPrevious(Message message)
Copy 'current object' to a temporary holder within message

Parameters:
message -

setTaskObject

public static java.lang.Object setTaskObject(Message message,
                                             java.lang.Object obj)
Put current object in standard spot within message
NULL values are not stored

Parameters:
message - - to operate on
obj - - Object to store - Won't be stored if <null>
Returns:
Object previous 'current object'

getNotifyList

public static NotificationList getNotifyList(ConfigTree tree,
                                             java.lang.String type)