Class MultiServiceInvocationHandler
- java.lang.Object
-
- jadex.bridge.service.component.multiinvoke.MultiServiceInvocationHandler
-
- All Implemented Interfaces:
java.lang.reflect.InvocationHandler
public class MultiServiceInvocationHandler extends java.lang.Object implements java.lang.reflect.InvocationHandler
Invocation handler for multiplexing service calls.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
MultiServiceInvocationHandler.IntermediateMethodResultListener<T>
Listener that invokes service methods and delegates the results.
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description MultiServiceInvocationHandler(IInternalAccess agent, java.lang.String reqname, java.lang.Class<?> muxservicetype)
Create a new invocation handler.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.Object
createValue(Value val, IValueFetcher fetcher)
Convert value annotation to object.static java.lang.Object
createValue(java.lang.Class<?> clazz)
Create a value from a class.java.lang.Object
invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
Called when a method is invoked.
-
-
-
Field Detail
-
agent
protected IInternalAccess agent
The agent.
-
reqname
protected java.lang.String reqname
The required service name.
-
servicetype
protected java.lang.Class<?> servicetype
The service type.
-
muxservicetype
protected java.lang.Class<?> muxservicetype
The multiplex service type.
-
-
Constructor Detail
-
MultiServiceInvocationHandler
public MultiServiceInvocationHandler(IInternalAccess agent, java.lang.String reqname, java.lang.Class<?> muxservicetype)
Create a new invocation handler.
-
-
Method Detail
-
invoke
public java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.Throwable
Called when a method is invoked.- Specified by:
invoke
in interfacejava.lang.reflect.InvocationHandler
- Throws:
java.lang.Throwable
-
createValue
public static java.lang.Object createValue(Value val, IValueFetcher fetcher)
Convert value annotation to object.
-
createValue
public static java.lang.Object createValue(java.lang.Class<?> clazz)
Create a value from a class.
-
-