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.InvocationHandlerInvocation handler for multiplexing service calls. 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description classMultiServiceInvocationHandler.IntermediateMethodResultListener<T>Listener that invokes service methods and delegates the results. 
- 
Field Summary
Fields Modifier and Type Field Description protected IInternalAccessagentThe agent.protected java.lang.Class<?>muxservicetypeThe multiplex service type.protected java.lang.StringreqnameThe required service name.protected java.lang.Class<?>servicetypeThe 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.ObjectcreateValue(Value val, IValueFetcher fetcher)Convert value annotation to object.static java.lang.ObjectcreateValue(java.lang.Class<?> clazz)Create a value from a class.java.lang.Objectinvoke(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.ThrowableCalled when a method is invoked.- Specified by:
 invokein 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. 
 - 
 
 -