Tuscany Core

org.apache.tuscany.core.wire
Interface TargetInvoker

All Superinterfaces:
java.lang.Cloneable, Interceptor
All Known Implementing Classes:
ComponentTargetInvoker, ExternalServiceTargetInvoker

public interface TargetInvoker
extends Interceptor, java.lang.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: 395162 $ $Date: 2006-04-19 04:07:36 -0400 (Wed, 19 Apr 2006) $

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

Method Detail

invokeTarget

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

Parameters:
payload - the parameters of the target operation or null
Throws:
java.lang.reflect.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

java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Implementations must support deep cloning

Throws:
java.lang.CloneNotSupportedException

Tuscany Core

-