ERDDelayedObjectCreationAssignment Class Reference

Inherits er::directtoweb::assignments::delayed::ERDDelayedAssignment.

Collaboration diagram for ERDDelayedObjectCreationAssignment:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ERDDelayedObjectCreationAssignment (String key, Object value)
 ERDDelayedObjectCreationAssignment (EOKeyValueUnarchiver u)
Object fireNow (D2WContext context)

Static Public Member Functions

static Object decodeWithKeyValueUnarchiver (EOKeyValueUnarchiver eokeyvalueunarchiver)

Static Public Attributes

static final Logger log = Logger.getLogger(ERDDelayedObjectCreationAssignment.class)


Detailed Description

Assignment used to create objects on the fly. This assignment can be used in two different manner. The first is by just specifing the class name as a string, ie "foo.bar.MyClass". This will create an instance of the MyClass object. The second form allows one to specify the object to be created in a dictionary format: { className = "foo.bar.MyClass"; arguments = ( { className = "com.webobjects.appserver.WOSession"; contextKey = "session"; }, { className = "java.lang.String"; contextKey = "propertyKey"; }); }

This will create an object of type MyClass using the constructor: MyClass(WOSession session, String key), using the arguments found by resolving the contextKey off of the current context.


Constructor & Destructor Documentation

ERDDelayedObjectCreationAssignment ( EOKeyValueUnarchiver  u  ) 

Public constructor

Parameters:
u key-value unarchiver used when unarchiving from rule files.

ERDDelayedObjectCreationAssignment ( String  key,
Object  value 
)

Public constructor

Parameters:
key context key
value of the assignment


Member Function Documentation

static Object decodeWithKeyValueUnarchiver ( EOKeyValueUnarchiver  eokeyvalueunarchiver  )  [static]

Static constructor required by the EOKeyValueUnarchiver interface. If this isn't implemented then the default behavior is to construct the first super class that does implement this method. Very lame.

Parameters:
eokeyvalueunarchiver to be unarchived
Returns:
decoded assignment of this class

Object fireNow ( D2WContext  context  )  [virtual]

Delayed firing of assignment. Creates an object for the specified class. See description of the class for the correct format.

Parameters:
context current context
Returns:
newly created object

Implements ERDDelayedAssignment.


Member Data Documentation

final Logger log = Logger.getLogger(ERDDelayedObjectCreationAssignment.class) [static]

logging support


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:42:50 2012 for Project Wonder by  doxygen 1.5.8