net.sf.tie.ext.factory
Class MultiInterceptor

java.lang.Object
  extended by net.sf.tie.ext.factory.MultiInterceptor
All Implemented Interfaces:
Advice, Interceptor, MethodInterceptor

public class MultiInterceptor
extends Object
implements MethodInterceptor

A MultiInterceptor wraps a collections of interceptors, behind a single invoke call.


Constructor Summary
MultiInterceptor(Iterable<MethodInterceptor> interceptors)
           
 
Method Summary
 Object invoke(MethodInvocation invocation)
          Adapts invocation to inject the provided interceptors into the chain.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiInterceptor

public MultiInterceptor(Iterable<MethodInterceptor> interceptors)
Method Detail

invoke

public Object invoke(MethodInvocation invocation)
              throws Throwable
Adapts invocation to inject the provided interceptors into the chain.

Specified by:
invoke in interface MethodInterceptor
Throws:
Throwable