public class RestServiceWrapperInvocationHandler
extends java.lang.Object
implements java.lang.reflect.InvocationHandler
Modifier and Type | Field and Description |
---|---|
protected IInternalAccess |
agent
The agent.
|
static java.lang.String[] |
defaultimports |
protected java.lang.Class<?> |
iface
The annotated service interface.
|
Constructor and Description |
---|
RestServiceWrapperInvocationHandler(IInternalAccess agent,
java.lang.Class<?> iface)
Create a new service wrapper invocation handler.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
Called when a wrapper method is invoked.
|
public static java.lang.String[] defaultimports
protected IInternalAccess agent
protected java.lang.Class<?> iface
public RestServiceWrapperInvocationHandler(IInternalAccess agent, java.lang.Class<?> iface)
agent
- The internal access of the agent.public java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.Throwable
invoke
in interface java.lang.reflect.InvocationHandler
java.lang.Throwable