@ApplicationScoped public class DeltaSpikeProxyInvocationHandler extends Object implements InvocationHandler
InvocationHandler which will be called directly by the proxy methods.
For both delegateMethods and interceptMethods
(See: DeltaSpikeProxyClassGenerator).
This InvocationHandler first executes CDI interceptors (if defined on method or class level) and
after that the original method or the DeltaSpikeProxy.getDelegateInvocationHandler() will be executed,
depending if the invoked method is a intercept or delegate method.| Constructor and Description |
|---|
DeltaSpikeProxyInvocationHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
contains(Method[] methods,
Method method) |
Object |
invoke(Object proxy,
Method method,
Object[] parameters) |
protected Object |
proceed(Object proxy,
Method method,
Object[] parameters)
Calls the original method or delegates to
DeltaSpikeProxy.getDelegateInvocationHandler()
after invoking the interceptor chain. |
public Object invoke(Object proxy, Method method, Object[] parameters) throws Throwable
invoke in interface InvocationHandlerThrowableprotected Object proceed(Object proxy, Method method, Object[] parameters) throws Throwable
DeltaSpikeProxy.getDelegateInvocationHandler()
after invoking the interceptor chain.proxy - The current proxy instance.method - The current invoked method.parameters - The method parameter.ThrowableCopyright © 2020 The Apache Software Foundation. All rights reserved.