Project Wonder 5.0

er.directtoweb.assignments.delayed
Class ERDDelayedRuleAssignment

java.lang.Object
  extended by com.webobjects.directtoweb.Assignment
      extended by er.directtoweb.assignments.delayed.ERDDelayedAssignment
          extended by er.directtoweb.assignments.delayed.ERDDelayedRuleAssignment
All Implemented Interfaces:
com.webobjects.eocontrol.EOKeyValueArchiving, java.io.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/interfaces inherited from interface com.webobjects.eocontrol.EOKeyValueArchiving
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
 
Field Summary
static org.apache.log4j.Logger 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(com.webobjects.eocontrol.EOKeyValueUnarchiver u)
           
ERDDelayedRuleAssignment(java.lang.String key, java.lang.Object value)
           
 
Method Summary
static java.lang.Object decodeWithKeyValueUnarchiver(com.webobjects.eocontrol.EOKeyValueUnarchiver eokeyvalueunarchiver)
           
 java.lang.Object fireNow(com.webobjects.directtoweb.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.assignments.delayed.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 org.apache.log4j.Logger log
Logging support

Constructor Detail

ERDDelayedRuleAssignment

public ERDDelayedRuleAssignment(com.webobjects.eocontrol.EOKeyValueUnarchiver u)

ERDDelayedRuleAssignment

public ERDDelayedRuleAssignment(java.lang.String key,
                                java.lang.Object value)
Method Detail

decodeWithKeyValueUnarchiver

public static java.lang.Object decodeWithKeyValueUnarchiver(com.webobjects.eocontrol.EOKeyValueUnarchiver eokeyvalueunarchiver)

fireNow

public java.lang.Object fireNow(com.webobjects.directtoweb.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: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.