|
Tuscany Core | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tuscany.core.extension.ExternalServiceTargetInvoker
public class ExternalServiceTargetInvoker
Responsible for invoking an external service
Constructor Summary | |
---|---|
ExternalServiceTargetInvoker(QualifiedName serviceName,
Method method,
ScopeContext container)
Constructs a new ExternalWebServiceTargetInvoker. |
Method Summary | |
---|---|
Object |
clone()
Implementations must support deep cloning |
protected Object |
doInvoke(ExternalServiceInvoker invoker,
Object[] args)
|
Message |
invoke(Message msg)
Process a synchronous wire. |
Object |
invokeTarget(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 ExternalServiceTargetInvoker(QualifiedName serviceName, Method method, ScopeContext container)
container
- Method Detail |
---|
public Object invokeTarget(Object payload) throws InvocationTargetException
TargetInvoker
invokeTarget
in interface TargetInvoker
payload
- the parameters of the target operation or null
InvocationTargetException
- if the target operation itself throws an exception. The root cause will be set
to that exceptionprotected Object doInvoke(ExternalServiceInvoker invoker, 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 Object clone() throws CloneNotSupportedException
TargetInvoker
clone
in interface TargetInvoker
clone
in class Object
CloneNotSupportedException
|
Tuscany Core | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |