public class ERDDelayedObjectCreationAssignment extends ERDDelayedAssignment
{
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.com.webobjects.eocontrol.EOKeyValueArchiving._NullValueSupport, com.webobjects.eocontrol.EOKeyValueArchiving._NumberSupport, com.webobjects.eocontrol.EOKeyValueArchiving._TimestampSupport, com.webobjects.eocontrol.EOKeyValueArchiving.Awaking, com.webobjects.eocontrol.EOKeyValueArchiving.FinishInitialization, com.webobjects.eocontrol.EOKeyValueArchiving.Support| Constructor and Description |
|---|
ERDDelayedObjectCreationAssignment(com.webobjects.eocontrol.EOKeyValueUnarchiver u)
Public constructor
|
ERDDelayedObjectCreationAssignment(String key,
Object value)
Public constructor
|
| Modifier and Type | Method and Description |
|---|---|
static Object |
decodeWithKeyValueUnarchiver(com.webobjects.eocontrol.EOKeyValueUnarchiver eokeyvalueunarchiver)
Static constructor required by the EOKeyValueUnarchiver
interface.
|
Object |
fireNow(com.webobjects.directtoweb.D2WContext context)
Delayed firing of assignment.
|
firepublic static final Logger log
public ERDDelayedObjectCreationAssignment(com.webobjects.eocontrol.EOKeyValueUnarchiver u)
u - key-value unarchiver used when unarchiving
from rule files.public static Object decodeWithKeyValueUnarchiver(com.webobjects.eocontrol.EOKeyValueUnarchiver eokeyvalueunarchiver)
eokeyvalueunarchiver - to be unarchivedpublic Object fireNow(com.webobjects.directtoweb.D2WContext context)
fireNow in class ERDDelayedAssignmentcontext - current contextCopyright © 2002 – 2020 Project Wonder.