Package org.forgerock.openig.el
Class ExpressionRequestAsyncFunction<V>
java.lang.Object
org.forgerock.openig.el.ExpressionRequestAsyncFunction<V>
- Type Parameters:
V- Expected type of evaluated result
- All Implemented Interfaces:
AsyncFunction<ContextAndRequest,V, Exception>
public class ExpressionRequestAsyncFunction<V>
extends Object
implements AsyncFunction<ContextAndRequest,V,Exception>
This is an implementation of the
AsyncFunction based on the evaluation of an Expression.-
Constructor Summary
ConstructorsConstructorDescriptionExpressionRequestAsyncFunction(Expression<V> expression) Constructs anAsyncFunctionthat evaluates the providedExpression. -
Method Summary
-
Constructor Details
-
ExpressionRequestAsyncFunction
Constructs anAsyncFunctionthat evaluates the providedExpression.- Parameters:
expression- the expression to evaluate
-
-
Method Details
-
apply
Description copied from interface:AsyncFunctionAsynchronously applies this function to the input parametervalueand returns aPromisefor the result.- Specified by:
applyin interfaceAsyncFunction<ContextAndRequest,V, Exception> - Parameters:
contextAndRequest- The input parameter.- Returns:
- The
Promiserepresenting the result of applying this function tovalue.
-