Apache Tuscany SCA Kernel Sub-Project

org.apache.tuscany.spi.wire
Interface Interceptor


public interface Interceptor

Synchronous, around-style mediation associated with a client- or target- side wire.

Version:
$Rev: 430937 $ $Date: 2006-08-11 18:17:56 -0700 (Fri, 11 Aug 2006) $

Method Summary
 Interceptor getNext()
          Returns the next interceptor or null
 Message invoke(Message msg)
          Process a synchronous wire
 boolean isOptimizable()
          Returns true if the interceptor can be optimized away from a wire
 void setNext(Interceptor next)
          Sets the next interceptor
 

Method Detail

invoke

Message invoke(Message msg)
Process a synchronous wire

Parameters:
msg - the request Message for the wire
Returns:
the response Message from the wire

setNext

void setNext(Interceptor next)
Sets the next interceptor


getNext

Interceptor getNext()
Returns the next interceptor or null


isOptimizable

boolean isOptimizable()
Returns true if the interceptor can be optimized away from a wire


Apache Tuscany SCA Kernel Sub-Project

-