public interface InterceptorHandler
Intercepts
marker.
IMPORTANT: if you want a delegate instance you have to provide a constructor
taking an object as parameter. Alternatively you can use a BiFunction<Method, Object[], Object>
constructor parameter to be able to delegate the invocation. Else you must provide a default constructor.
NOTE: if your interceptor doesn't take an invoker as parameter
(java.util.function.BiFunction<Method, Object[], Object>)
then the interceptor chain can be broken if you invoke yourself a method. It is recommended to respect it.Modifier and Type | Method and Description |
---|---|
default <T extends Annotation> |
findAnnotation(Method method,
Class<T> type) |
Object |
invoke(Method method,
Object[] args)
Called instead of the delegate method.
|
Object invoke(Method method, Object[] args)
method
- th emethod being invoked.args
- the parameters of the method.default <T extends Annotation> Optional<T> findAnnotation(Method method, Class<T> type)
1.1.16-SNAPSHOT - Copyright © 2019 Talend Component Kit Documentation