Package org.wickedsource.docxstamper.el
Class StandardMethodExecutor
java.lang.Object
org.wickedsource.docxstamper.el.StandardMethodExecutor
- All Implemented Interfaces:
org.springframework.expression.MethodExecutor
public class StandardMethodExecutor
extends Object
implements org.springframework.expression.MethodExecutor
This class is a wrapper around a method call which can be executed by the Spring Expression Language.
It is used by the
ExpressionResolver to evaluate method calls.- Version:
- 1.6.6
- Author:
- Joseph Verron
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThe invoker is used to call the method in question. -
Constructor Summary
ConstructorsConstructorDescriptionStandardMethodExecutor(StandardMethodExecutor.Invoker invoker, Function<ReflectiveOperationException, org.springframework.expression.TypedValue> onFail) Constructor for StandardMethodExecutor. -
Method Summary
-
Constructor Details
-
StandardMethodExecutor
public StandardMethodExecutor(StandardMethodExecutor.Invoker invoker, Function<ReflectiveOperationException, org.springframework.expression.TypedValue> onFail) Constructor for StandardMethodExecutor.
- Parameters:
invoker- the invoker that is used to call the method in question.onFail- a function that is called if the invoker throws an exception. The function may return a default value to be returned by theexecute(EvaluationContext, Object, Object...)method.
-
-
Method Details