public class MultiServiceInvocationHandler
extends java.lang.Object
implements java.lang.reflect.InvocationHandler
| Modifier and Type | Class and Description |
|---|---|
class |
MultiServiceInvocationHandler.IntermediateMethodResultListener<T>
Listener that invokes service methods and delegates the results.
|
| Modifier and Type | Field and Description |
|---|---|
protected IInternalAccess |
agent
The agent.
|
protected java.lang.Class<?> |
muxservicetype
The multiplex service type.
|
protected java.lang.String |
reqname
The required service name.
|
protected java.lang.Class<?> |
servicetype
The service type.
|
| Constructor and Description |
|---|
MultiServiceInvocationHandler(IInternalAccess agent,
java.lang.String reqname,
java.lang.Class<?> muxservicetype)
Create a new invocation handler.
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Object |
createValue(java.lang.Class<?> clazz)
Create a value from a class.
|
static java.lang.Object |
createValue(Value val,
IValueFetcher fetcher)
Convert value annotation to object.
|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
Called when a method is invoked.
|
protected IInternalAccess agent
protected java.lang.String reqname
protected java.lang.Class<?> servicetype
protected java.lang.Class<?> muxservicetype
public MultiServiceInvocationHandler(IInternalAccess agent, java.lang.String reqname, java.lang.Class<?> muxservicetype)
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.InvocationHandlerjava.lang.Throwablepublic static java.lang.Object createValue(Value val, IValueFetcher fetcher)
public static java.lang.Object createValue(java.lang.Class<?> clazz)