org.jboss.resteasy.core.interception
Class InterceptorRegistry<T>

java.lang.Object
  extended by org.jboss.resteasy.core.interception.InterceptorRegistry<T>

public class InterceptorRegistry<T>
extends Object

Version:
$Revision: 1 $
Author:
Bill Burke

Nested Class Summary
protected  class InterceptorRegistry.AbstractInterceptorFactory
           
protected static interface InterceptorRegistry.InterceptorFactory
           
protected  class InterceptorRegistry.PerMethodInterceptorFactory
           
 class InterceptorRegistry.PrecedenceComparator
           
protected  class InterceptorRegistry.SingletonInterceptorFactory
           
 
Field Summary
protected  List<InterceptorRegistry.InterceptorFactory> interceptors
           
protected  Class<T> intf
           
protected  List<InterceptorRegistryListener> listeners
           
protected  List<String> precedenceList
           
protected  Map<String,Integer> precedenceOrder
           
protected  ResteasyProviderFactory providerFactory
           
 
Constructor Summary
InterceptorRegistry(Class<T> intf, ResteasyProviderFactory providerFactory)
           
 
Method Summary
protected  void addNewInterceptor(List<T> list, Object interceptor)
           
 void appendPrecedence(String precedence)
           
 T[] bind(Class declaring, AccessibleObject target)
           
 List<T> bindForList(Class declaring, AccessibleObject target)
           
 Class<T> getIntf()
           
 List<InterceptorRegistryListener> getListeners()
           
 void insertPrecedenceAfter(String after, String newPrecedence)
           
 void insertPrecedenceBefore(String after, String newPrecedence)
           
protected  void recalculateOrder()
           
 void register(Class<? extends T> clazz)
           
 void register(T interceptor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

providerFactory

protected ResteasyProviderFactory providerFactory

intf

protected Class<T> intf

interceptors

protected List<InterceptorRegistry.InterceptorFactory> interceptors

precedenceOrder

protected Map<String,Integer> precedenceOrder

precedenceList

protected List<String> precedenceList

listeners

protected List<InterceptorRegistryListener> listeners
Constructor Detail

InterceptorRegistry

public InterceptorRegistry(Class<T> intf,
                           ResteasyProviderFactory providerFactory)
Method Detail

getListeners

public List<InterceptorRegistryListener> getListeners()

getIntf

public Class<T> getIntf()

recalculateOrder

protected void recalculateOrder()

appendPrecedence

public void appendPrecedence(String precedence)

insertPrecedenceAfter

public void insertPrecedenceAfter(String after,
                                  String newPrecedence)

insertPrecedenceBefore

public void insertPrecedenceBefore(String after,
                                   String newPrecedence)

bind

public T[] bind(Class declaring,
                AccessibleObject target)

bindForList

public List<T> bindForList(Class declaring,
                           AccessibleObject target)

addNewInterceptor

protected void addNewInterceptor(List<T> list,
                                 Object interceptor)

register

public void register(Class<? extends T> clazz)

register

public void register(T interceptor)


Copyright © 2012. All Rights Reserved.