|
Tuscany Core | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tuscany.core.extension.ComponentTargetInvoker
public class ComponentTargetInvoker
Responsible for invoking an external service TODO: virtualy identical to ExternalServiceTargetInvoker
Constructor Summary | |
---|---|
ComponentTargetInvoker(QualifiedName serviceName,
java.lang.reflect.Method method,
ScopeContext container)
Constructs a new ExternalWebServiceTargetInvoker. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Implementations must support deep cloning |
protected java.lang.Object |
doInvoke(ExternalServiceInvoker invoker,
java.lang.Object[] args)
|
Message |
invoke(Message msg)
Process a synchronous wire. |
java.lang.Object |
invokeTarget(java.lang.Object payload)
Responsible for invoking an operation on a target with the given payload |
boolean |
isCacheable()
Determines whether the proxy can be cached on the client/source side |
void |
setNext(Interceptor next)
Sets the next interceptor. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ComponentTargetInvoker(QualifiedName serviceName, java.lang.reflect.Method method, ScopeContext container)
container
- Method Detail |
---|
public java.lang.Object invokeTarget(java.lang.Object payload) throws java.lang.reflect.InvocationTargetException
TargetInvoker
invokeTarget
in interface TargetInvoker
payload
- the parameters of the target operation or null
java.lang.reflect.InvocationTargetException
- if the target operation itself throws an exception. The root cause will be set
to that exceptionprotected java.lang.Object doInvoke(ExternalServiceInvoker invoker, java.lang.Object[] args)
public boolean isCacheable()
TargetInvoker
isCacheable
in interface TargetInvoker
public Message invoke(Message msg)
Interceptor
invoke
in interface Interceptor
msg
- the request Message for the wire
public void setNext(Interceptor next)
Interceptor
setNext
in interface Interceptor
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
TargetInvoker
clone
in interface TargetInvoker
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
|
Tuscany Core | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |