Class SpringExpressionContextLookupFunction<T extends BaseContext,U>
java.lang.Object
net.shibboleth.shared.spring.expression.AbstractSpringExpressionEvaluator
net.shibboleth.shared.spring.expression.SpringExpressionFunction<T,U>
net.shibboleth.profile.context.navigate.SpringExpressionContextLookupFunction<T,U>
- Type Parameters:
T- the specific type of contextU- output type
- All Implemented Interfaces:
Function<T,,U> ContextDataLookupFunction<T,U>
public class SpringExpressionContextLookupFunction<T extends BaseContext,U>
extends SpringExpressionFunction<T,U>
implements ContextDataLookupFunction<T,U>
A
Function over a BaseContext
which calls out to a Spring Expression.- Since:
- 3.3.0
-
Constructor Summary
ConstructorsConstructorDescriptionSpringExpressionContextLookupFunction(Class<T> inClass, String expression) Constructor.Constructor. -
Method Summary
Methods inherited from class net.shibboleth.shared.spring.expression.SpringExpressionFunction
apply, getInputType, prepareContext, setInputType, setOutputType, setReturnOnErrorMethods inherited from class net.shibboleth.shared.spring.expression.AbstractSpringExpressionEvaluator
evaluate, getCustomObject, getOutputType, getReturnOnError, setCustomObject, setHideExceptions
-
Constructor Details
-
SpringExpressionContextLookupFunction
public SpringExpressionContextLookupFunction(@Nonnull @ParameterName(name="inClass") Class<T> inClass, @Nonnull @NotEmpty @ParameterName(name="expression") String expression) Constructor.- Parameters:
inClass- the class we accept as input.expression- the expression to evaluate.
-
SpringExpressionContextLookupFunction
public SpringExpressionContextLookupFunction(@Nonnull @ParameterName(name="inClass") Class<T> inClass, @Nonnull @NotEmpty @ParameterName(name="expression") String expression, @ParameterName(name="outputType") @Nullable Class<U> outputType) Constructor.- Parameters:
inClass- the class we accept as input.expression- the expression to evaluate.outputType- the type to test against.
-