org.vraptor.interceptor
Class InterceptorType

java.lang.Object
  extended by org.vraptor.interceptor.InterceptorType
All Implemented Interfaces:
Outjectable

public class InterceptorType
extends Object
implements Outjectable

Interceptor class to deal with interceptors instances

Author:
Guilherme Silveira, Paulo Silveira

Method Summary
 boolean equals(Object o)
           
 List<FieldAnnotation<In>> getInAnnotations()
           
 Class getInterceptorClass()
           
static List<InterceptorType> getInterceptors(Class<?> clazz)
          Returns a list of interceptors for the specified component class, parsing its InterceptedBy annotations
 Map<String,Object> getOutjectedValues(Object comp, ScopeType scope)
          Returns all outjected objects from an specific scope
static InterceptorType getType(Class<? extends Interceptor> c)
          Returns an InterceptorType which represents the given interceptor class.
static InterceptorType getType(Interceptor interceptor)
          Returns an InterceptorType which represents the given interceptor
 int hashCode()
           
 Interceptor newInstance(LogicRequest logicRequest, BeanProvider provider)
          Returns a new instance of this interceptor, using the specified bean provider.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newInstance

public Interceptor newInstance(LogicRequest logicRequest,
                               BeanProvider provider)
                        throws ComponentInstantiationException,
                               InvalidComponentException
Returns a new instance of this interceptor, using the specified bean provider.

Throws:
ComponentInstantiationException
InvalidComponentException
Since:
2.3.2

getInAnnotations

public List<FieldAnnotation<In>> getInAnnotations()
Returns:
Returns the inAnnotations.

getInterceptorClass

public Class getInterceptorClass()

getType

public static InterceptorType getType(Class<? extends Interceptor> c)
Returns an InterceptorType which represents the given interceptor class.

Parameters:
c -
Returns:

getType

public static InterceptorType getType(Interceptor interceptor)
Returns an InterceptorType which represents the given interceptor

Parameters:
interceptor -
Returns:

getInterceptors

public static List<InterceptorType> getInterceptors(Class<?> clazz)
Returns a list of interceptors for the specified component class, parsing its InterceptedBy annotations

Parameters:
clazz - class
Returns:
interceptor type list

getOutjectedValues

public Map<String,Object> getOutjectedValues(Object comp,
                                             ScopeType scope)
                                      throws GettingException,
                                             MethodInvocationException
Description copied from interface: Outjectable
Returns all outjected objects from an specific scope

Specified by:
getOutjectedValues in interface Outjectable
Throws:
GettingException
MethodInvocationException

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2004-2008 VRaptor. All Rights Reserved.