Tuscany Core

org.apache.tuscany.core.wire
Interface TargetInvoker

All Superinterfaces:
Cloneable, Interceptor
All Known Implementing Classes:
ComponentTargetInvoker, ExternalServiceTargetInvoker

public interface TargetInvoker
extends Interceptor, Cloneable

Implementations are responsible for resolving a target and performing the actual invocation on it, for example, a service component implementation instance or an external service client.

Version:
$Rev: 408581 $ $Date: 2006-05-21 23:34:24 -0700 (Sun, 21 May 2006) $

Method Summary
 Object clone()
          Implementations must support deep cloning
 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
 
Methods inherited from interface org.apache.tuscany.core.wire.Interceptor
invoke, setNext
 

Method Detail

invokeTarget

Object invokeTarget(Object payload)
                    throws InvocationTargetException
Responsible for invoking an operation on a target with the given payload

Parameters:
payload - the parameters of the target operation or null
Throws:
InvocationTargetException - if the target operation itself throws an exception. The root cause will be set to that exception

isCacheable

boolean isCacheable()
Determines whether the proxy can be cached on the client/source side


clone

Object clone()
             throws CloneNotSupportedException
Implementations must support deep cloning

Throws:
CloneNotSupportedException

Tuscany Core

-