org.vraptor.interceptor
Class InterceptorDealer

java.lang.Object
  extended by org.vraptor.interceptor.InterceptorDealer

public class InterceptorDealer
extends Object

Deals with the list of interceptors to be executed.

Since:
2.3.2
Author:
Guilherme Silveira, Paulo Silveira

Constructor Summary
InterceptorDealer(LogicRequest logicRequest, Introspector introspector, List<Interceptor> before, List<InterceptorType> main, List<Interceptor> after)
           
 
Method Summary
 void add(InterceptorType i)
          Adds an interceptor to the top.
 void inject(Interceptor interceptor, LogicRequest context)
           
 void outject(Interceptor interceptor, LogicRequest context)
           
 Interceptor poll()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InterceptorDealer

public InterceptorDealer(LogicRequest logicRequest,
                         Introspector introspector,
                         List<Interceptor> before,
                         List<InterceptorType> main,
                         List<Interceptor> after)
Method Detail

outject

public void outject(Interceptor interceptor,
                    LogicRequest context)
             throws GettingException,
                    MethodInvocationException
Throws:
GettingException
MethodInvocationException

inject

public void inject(Interceptor interceptor,
                   LogicRequest context)
            throws ComponentInstantiationException,
                   SettingException
Throws:
ComponentInstantiationException
SettingException

poll

public Interceptor poll()
                 throws InterceptorInstantiationException
Throws:
InterceptorInstantiationException

add

public void add(InterceptorType i)
Adds an interceptor to the top.

Parameters:
i - the interceptor to add


Copyright © 2004-2008 VRaptor. All Rights Reserved.