|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Executor
The Executor interface is implemented by a class that can perform the Unification-Validation-Evaluation cycle on an Expression.
Method Summary | |
---|---|
Object |
execute(Expression expression, Unifier unifier, Validator validator, Evaluator evaluator) Executes the supplied expression in a stateless/stateful mode depending on the supplied evaluator. |
Method Detail |
---|
Object execute(Expression expression, Unifier unifier, Validator validator, Evaluator evaluator) throws IllegalArgumentException, ExpressionException
The algorithm, for execution is as follows. UNIFICATION 1. Unify the supplied expression if the supplied unifier is not null, otherwise ignore unification. VALIDATION 2. Validate the supplied expression if the supplied validator is not null, otherwise ignore validation. EVALUATION 3. If the supplied evaluator is not null, then the supplied expression is evaluated in the stateful or stateless mode depending on the type of the supplied evaluator. 3a. If the supplied evaluator is null then throw IllegalArgumentException. 4. Return the result. Note: IF STATELESS EVALUATOR IS PASSED THEN UNIFIER SHOULD BE NULL.
expression
- An Expression
to be evaluated.unifier
- The Unifier
that can unify the supplied expression.validator
- The Validator
that can validate the supplied expression.evaluator
- The Evaluator
that can evaluate/execute the supplied expression.IllegalArgumentException
- If the supplied evaluator is null
.ExpressionException
- If an error occurs during the execution of the supplied expression.Expression
, Unifier
, Validator
, Evaluator
|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2010, Oracle. All rights reserved.