Apache Tuscany SCA Kernel Sub-Project

org.apache.tuscany.spi.extension
Class TargetInvokerExtension

java.lang.Object
  extended by org.apache.tuscany.spi.extension.TargetInvokerExtension
All Implemented Interfaces:
Cloneable, TargetInvoker

public abstract class TargetInvokerExtension
extends Object
implements TargetInvoker

The default implementation of a TargetInvoker


Constructor Summary
TargetInvokerExtension()
           
 
Method Summary
 Object clone()
          Implementations must support deep cloning
 Message invoke(Message msg)
          Invokes an operation on a target with the given message
 boolean isCacheable()
          Determines whether the proxy can be cached on the client/source side
 boolean isOptimizable()
          Determines if the target invoker can be discarded during wire optimization
 void setCacheable(boolean cacheable)
          Sets whether the target service instance may be cached by the invoker.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.tuscany.spi.wire.TargetInvoker
invokeTarget
 

Constructor Detail

TargetInvokerExtension

public TargetInvokerExtension()
Method Detail

invoke

public Message invoke(Message msg)
               throws InvocationRuntimeException
Description copied from interface: TargetInvoker
Invokes an operation on a target with the given message

Specified by:
invoke in interface TargetInvoker
Throws:
InvocationRuntimeException

isCacheable

public boolean isCacheable()
Description copied from interface: TargetInvoker
Determines whether the proxy can be cached on the client/source side

Specified by:
isCacheable in interface TargetInvoker

setCacheable

public void setCacheable(boolean cacheable)
Description copied from interface: TargetInvoker
Sets whether the target service instance may be cached by the invoker. This is a possible optimization when a wire is configured for a "down-scope" reference, i.e. a reference from a source of a shorter lifetime to a source of greater lifetime.

Specified by:
setCacheable in interface TargetInvoker

isOptimizable

public boolean isOptimizable()
Description copied from interface: TargetInvoker
Determines if the target invoker can be discarded during wire optimization

Specified by:
isOptimizable in interface TargetInvoker

clone

public Object clone()
Description copied from interface: TargetInvoker
Implementations must support deep cloning

Specified by:
clone in interface TargetInvoker
Overrides:
clone in class Object

Apache Tuscany SCA Kernel Sub-Project

-