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 theAsyncFunctionbased on the evaluation of anExpression. 
- 
- 
Constructor Summary
Constructors Constructor Description ExpressionRequestAsyncFunction(Expression<V> expression)Constructs anAsyncFunctionthat 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 parametervalueand returns aPromisefor the result. 
 - 
 
- 
- 
Constructor Detail
- 
ExpressionRequestAsyncFunction
public ExpressionRequestAsyncFunction(Expression<V> expression)
Constructs anAsyncFunctionthat evaluates the providedExpression.- Parameters:
 expression- the expression to evaluate
 
 - 
 
- 
Method Detail
- 
apply
public Promise<V,Exception> apply(ContextAndRequest contextAndRequest)
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. 
 
 - 
 
 -