org.vraptor
Class InterceptorStack

java.lang.Object
  extended by org.vraptor.InterceptorStack
All Implemented Interfaces:
Interceptor

public class InterceptorStack
extends Object
implements Interceptor

An interceptor that can be used to group common interceptors into one, avoiding lots of classes inside an InterceptedBy annotation.

Since:
2.3.1
Author:
Paulo Silveira, Guilherme Silveira

Constructor Summary
InterceptorStack(Class<? extends Interceptor>... interceptorClasses)
          Constructs an InterceptorStack with the given interceptors
 
Method Summary
 List<InterceptorType> getInterceptors()
           
 void intercept(LogicFlow realFlow)
          Intercepts the logic flow with the given interceptors, respecting the order.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InterceptorStack

public InterceptorStack(Class<? extends Interceptor>... interceptorClasses)
Constructs an InterceptorStack with the given interceptors

Parameters:
interceptors -
Method Detail

intercept

public void intercept(LogicFlow realFlow)
               throws LogicException,
                      ViewException
Intercepts the logic flow with the given interceptors, respecting the order.

Specified by:
intercept in interface Interceptor
Throws:
LogicException - some logic exception occurred
ViewException - some view exception occurred

getInterceptors

public List<InterceptorType> getInterceptors()


Copyright © 2004-2008 VRaptor. All Rights Reserved.