public interface Interceptor
Modifier and Type | Method and Description |
---|---|
Interceptor |
on(java.lang.Object target)
Defines the target object to intercept.
|
Interceptor |
onCall(InterceptionHandler action)
Defines the action to execute on method interception.
|
Interceptor |
onFail(InterceptionFailHandler handler)
Defines a handler to deal with errors in interception.
|
<E> E |
proxy()
Creates the proxy instance based on the components configured.
|
Interceptor |
with(java.lang.ClassLoader classloader)
Defines the ClassLoader that should be used to create the proxy instance.
|
Interceptor with(java.lang.ClassLoader classloader)
classloader
- the ClassLoader to create the proxyInterceptor on(java.lang.Object target)
InterceptionContext
.target
- the target to interceptInterceptor onCall(InterceptionHandler action)
action
- the action to executeInterceptor onFail(InterceptionFailHandler handler)
handler
- the handler to use<E> E proxy()