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
ConstructorDescriptionExpressionRequestAsyncFunction
(Expression<V> expression) Constructs anAsyncFunction
that evaluates the providedExpression
. -
Method Summary
-
Constructor Details
-
ExpressionRequestAsyncFunction
Constructs anAsyncFunction
that evaluates the providedExpression
.- Parameters:
expression
- the expression to evaluate
-
-
Method Details
-
apply
Description copied from interface:AsyncFunction
Asynchronously applies this function to the input parametervalue
and returns aPromise
for the result.- Specified by:
apply
in interfaceAsyncFunction<ContextAndRequest,
V, Exception> - Parameters:
contextAndRequest
- The input parameter.- Returns:
- The
Promise
representing the result of applying this function tovalue
.
-