Tuscany Core

org.apache.tuscany.core.wire.impl
Class InvokerInterceptor

java.lang.Object
  extended by org.apache.tuscany.core.wire.impl.InvokerInterceptor
All Implemented Interfaces:
Interceptor

public class InvokerInterceptor
extends java.lang.Object
implements Interceptor

Serves as a tail interceptor on a target wire chain. This implementation dispatches to the target invoker passed inside the wire message. Target invokers are passed from the source in order to allow for caching of target instances.

Version:
$Rev$ $Date$
See Also:
TargetInvoker

Constructor Summary
InvokerInterceptor()
           
 
Method Summary
 Message invoke(Message msg)
          Process a synchronous wire.
 void setNext(Interceptor next)
          Sets the next interceptor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InvokerInterceptor

public InvokerInterceptor()
Method Detail

invoke

public Message invoke(Message msg)
               throws InvocationRuntimeException
Description copied from interface: Interceptor
Process a synchronous wire.

Specified by:
invoke in interface Interceptor
Parameters:
msg - the request Message for the wire
Returns:
the response Message from the wire
Throws:
InvocationRuntimeException

setNext

public void setNext(Interceptor next)
Description copied from interface: Interceptor
Sets the next interceptor.

Specified by:
setNext in interface Interceptor

Tuscany Core

-