wt.rule.impl
Class LifeCycleManagedInitRuleApplier

java.lang.Object
  extended bywt.rule.impl.LifeCycleManagedInitRuleApplier
All Implemented Interfaces:
RuleApplier

public class LifeCycleManagedInitRuleApplier
extends Object
implements RuleApplier

A rule applier for applying INIT rules to LifeCycleManaged objects.

This class should be moved to the wt.lifecycle package.

Supported API: false

Extendable: false


Field Summary
private static String CLASSNAME
          Deprecated.  
private static String RESOURCE
          Deprecated.  
private static String RULE_RESOURCE
          Deprecated.  
private static InitRuleContentHandler.ContextTargetValueHandler TARGET_VALUE_HANDLER
          Deprecated.  
 
Constructor Summary
LifeCycleManagedInitRuleApplier()
          Deprecated.  
 
Method Summary
 Object applyRule(Object object, Rule rule, WTContainerRef container)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
Deprecated. 
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME
Deprecated. 

RULE_RESOURCE

private static final String RULE_RESOURCE
Deprecated. 
See Also:
Constant Field Values

TARGET_VALUE_HANDLER

private static InitRuleContentHandler.ContextTargetValueHandler TARGET_VALUE_HANDLER
Deprecated. 
Constructor Detail

LifeCycleManagedInitRuleApplier

public LifeCycleManagedInitRuleApplier()
Deprecated. 
Method Detail

applyRule

public Object applyRule(Object object,
                        Rule rule,
                        WTContainerRef container)
                 throws WTException,
                        WTPropertyVetoException
Deprecated.  

Apply rule to the object. Return the resulting object. The specified container is used to lookup resource objects that are required while applying the rule. The result object might be the same object or a different one depending on the semantics of the rule.

If the rule is null, or the rule does not have a specification, then nothing is done and the original object is returned (i.e., a no-op is performed).

Different implementations of this interface will handle rule application differently.

Specified by:
applyRule in interface RuleApplier
Parameters:
object - the object that the rule should be applied to (cannot be null)
rule - the rule to be applied
container - the container to use for resource object lookups
Returns:
Object
Throws:
WTException
WTPropertyVetoException