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 SummaryNested Classes Modifier and Type Class Description classMultiServiceInvocationHandler.IntermediateMethodResultListener<T>Listener that invokes service methods and delegates the results.
 - 
Field SummaryFields 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 SummaryConstructors Constructor Description MultiServiceInvocationHandler(IInternalAccess agent, java.lang.String reqname, java.lang.Class<?> muxservicetype)Create a new invocation handler.
 - 
Method SummaryAll 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- 
agentprotected IInternalAccess agent The agent.
 - 
reqnameprotected java.lang.String reqname The required service name.
 - 
servicetypeprotected java.lang.Class<?> servicetype The service type.
 - 
muxservicetypeprotected java.lang.Class<?> muxservicetype The multiplex service type.
 
- 
 - 
Constructor Detail- 
MultiServiceInvocationHandlerpublic MultiServiceInvocationHandler(IInternalAccess agent, java.lang.String reqname, java.lang.Class<?> muxservicetype) Create a new invocation handler.
 
- 
 - 
Method Detail- 
invokepublic 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 interface- java.lang.reflect.InvocationHandler
- Throws:
- java.lang.Throwable
 
 - 
createValuepublic static java.lang.Object createValue(Value val, IValueFetcher fetcher) Convert value annotation to object.
 - 
createValuepublic static java.lang.Object createValue(java.lang.Class<?> clazz) Create a value from a class.
 
- 
 
-