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 theAsyncFunction
based on the evaluation of anExpression
.
-
-
Constructor Summary
Constructors Constructor Description ExpressionRequestAsyncFunction(Expression<V> expression)
Constructs anAsyncFunction
that evaluates the providedExpression
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Promise<V,Exception>
apply(ContextAndRequest contextAndRequest)
Asynchronously applies this function to the input parametervalue
and returns aPromise
for the result.
-
-
-
Constructor Detail
-
ExpressionRequestAsyncFunction
public ExpressionRequestAsyncFunction(Expression<V> expression)
Constructs anAsyncFunction
that evaluates the providedExpression
.- Parameters:
expression
- the expression to evaluate
-
-
Method Detail
-
apply
public Promise<V,Exception> apply(ContextAndRequest contextAndRequest)
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
.
-
-