com.bea.p13n.rules.advislets
Class RulesInputTransform
java.lang.Object
|
+--com.bea.p13n.advisor.AbstractAdviceTransform
|
+--com.bea.p13n.rules.advislets.RulesInputTransform
- public class RulesInputTransform
- extends AbstractAdviceTransform
An AdviceTransform
that converts AdviceRequest parameters into the input objects for the
Rules Advislet.
The following parameters are put in a collection and associated
with the RULES_INPUT_OBJECTS
key:
- The current HTTP Request
- The current HTTP Session
- The current User
- The current TimeInstant
- The current Time
- The current Date
Method Summary
|
void |
transform(Advice input,
AdviceRequest output)
Maps the 'well-knows' input objects into the RULES_INPUT_OBJECTS
List to be passed into the rule engine. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
RulesInputTransform
public RulesInputTransform(Advisor advisor,
Metadata metadata)
- Construct an instance of this object and bind it to
its Advisor and Metadata instances.
- Parameters:
advisor
- the Advisor
for this object.metadata
- the Metadata
for this object.
transform
public void transform(Advice input,
AdviceRequest output)
throws AdvisorException
- Maps the 'well-knows' input objects into the RULES_INPUT_OBJECTS
List to be passed into the rule engine.
- Parameters:
input
- the the Advice
instance containing the input objectsoutput
- the AdviceRequest
to be passed to the RulesAdvislet.- Overrides:
- transform in class AbstractAdviceTransform
Copyright © 2002 BEA Systems, Inc. All Rights Reserved