er.directtoweb
Class ERDKeyValueAssignment
java.lang.Object
com.webobjects.directtoweb.Assignment
er.directtoweb.ERDKeyValueAssignment
- All Implemented Interfaces:
- EOKeyValueArchiving, Serializable
- public class ERDKeyValueAssignment
- extends Assignment
Piece of crap. This assignment works around the
fact that KeyValueAssignment isn't public (and should be).
Use this assignment as a drop in replacement for
KeyValueAssignment. Note that this assignment is not a
delayed assignment and as such the value returned by this
assignment will be cached the first time this assignment is
fired. To have a key value assignment that does not cache
the value returned the first time have a look at
ERDDelayedKeyValueAssignment
.
- See Also:
- Serialized Form
ERDKeyValueAssignment
public ERDKeyValueAssignment(String s,
String s1)
- Public constructor
- Parameters:
s
- context keys1
- value to be invoke on the context when firing.
ERDKeyValueAssignment
public ERDKeyValueAssignment(EOKeyValueUnarchiver eokeyvalueunarchiver)
- Public constructor
decodeWithKeyValueUnarchiver
public static Object decodeWithKeyValueUnarchiver(EOKeyValueUnarchiver eokeyvalueunarchiver)
- 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
fire
public Object fire(D2WContext d2wcontext)
- Fires the assignment. In this case this method calls
valueForKeyPath
on the passed in context
using the value() as the key.
- Parameters:
d2wcontext
- current context
- Returns:
- result of resolving the key path off of the
context.
Copyright © 2002 – 2004 Project Wonder.