Project Wonder 2.0

er.directtoweb
Class ERDDelayedRuleAssignment

java.lang.Object
  extended bycom.webobjects.directtoweb.Assignment
      extended byer.directtoweb.ERDDelayedAssignment
          extended byer.directtoweb.ERDDelayedRuleAssignment
All Implemented Interfaces:
EOKeyValueArchiving, Serializable

public class ERDDelayedRuleAssignment
extends ERDDelayedAssignment

DelayedRuleAssignment expects an array of rules as its value. The rules are evaluated in turn until one returns a non-null result. This is done every time that the propertyKey is requested thus making the rule system a lot more dynamic.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class com.webobjects.eocontrol.EOKeyValueArchiving
EOKeyValueArchiving._NullValueSupport, EOKeyValueArchiving._NumberSupport, EOKeyValueArchiving._TimestampSupport, EOKeyValueArchiving.Awaking, EOKeyValueArchiving.FinishInitialization, EOKeyValueArchiving.Support
 
Field Summary
static ERXLogger log
          Logging support
 
Fields inherited from class com.webobjects.directtoweb.Assignment
KeyPathKey, ValueKey
 
Fields inherited from interface com.webobjects.eocontrol.EOKeyValueArchiving
_CLASS
 
Constructor Summary
ERDDelayedRuleAssignment(EOKeyValueUnarchiver u)
           
ERDDelayedRuleAssignment(String key, Object value)
           
 
Method Summary
static Object decodeWithKeyValueUnarchiver(EOKeyValueUnarchiver eokeyvalueunarchiver)
           
 Object fireNow(D2WContext c)
          This method is called whenever the propertyKey is requested, but the value in the cache is actually a rule.
 
Methods inherited from class er.directtoweb.ERDDelayedAssignment
fire
 
Methods inherited from class com.webobjects.directtoweb.Assignment
encodeWithKeyValueArchiver, keyPath, toString, value, value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

public static final ERXLogger log
Logging support

Constructor Detail

ERDDelayedRuleAssignment

public ERDDelayedRuleAssignment(EOKeyValueUnarchiver u)

ERDDelayedRuleAssignment

public ERDDelayedRuleAssignment(String key,
                                Object value)
Method Detail

decodeWithKeyValueUnarchiver

public static Object decodeWithKeyValueUnarchiver(EOKeyValueUnarchiver eokeyvalueunarchiver)

fireNow

public Object fireNow(D2WContext c)
This method is called whenever the propertyKey is requested, but the value in the cache is actually a rule.

Specified by:
fireNow in class ERDDelayedAssignment

Last updated: Do, Dez 9, 2004 • 12:46 PM CET

Copyright © 2002 – 2004 Project Wonder.