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 java.lang.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  java.util.List<InterceptorRegistry.InterceptorFactory> interceptors
           
protected  java.lang.Class<T> intf
           
protected  java.util.List<InterceptorRegistryListener> listeners
           
protected  java.util.List<java.lang.String> precedenceList
           
protected  java.util.Map<java.lang.String,java.lang.Integer> precedenceOrder
           
protected  ResteasyProviderFactory providerFactory
           
 
Constructor Summary
InterceptorRegistry(java.lang.Class<T> intf, ResteasyProviderFactory providerFactory)
           
 
Method Summary
protected  void addNewInterceptor(java.util.List<T> list, java.lang.Object interceptor)
           
 void appendPrecedence(java.lang.String precedence)
           
 T[] bind(java.lang.Class declaring, java.lang.reflect.AccessibleObject target)
           
 java.util.List<T> bindForList(java.lang.Class declaring, java.lang.reflect.AccessibleObject target)
           
 java.lang.Class<T> getIntf()
           
 java.util.List<InterceptorRegistryListener> getListeners()
           
 void insertPrecedenceAfter(java.lang.String after, java.lang.String newPrecedence)
           
 void insertPrecedenceBefore(java.lang.String after, java.lang.String newPrecedence)
           
protected  void recalculateOrder()
           
 void register(java.lang.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 java.lang.Class<T> intf

interceptors

protected java.util.List<InterceptorRegistry.InterceptorFactory> interceptors

precedenceOrder

protected java.util.Map<java.lang.String,java.lang.Integer> precedenceOrder

precedenceList

protected java.util.List<java.lang.String> precedenceList

listeners

protected java.util.List<InterceptorRegistryListener> listeners
Constructor Detail

InterceptorRegistry

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

getListeners

public java.util.List<InterceptorRegistryListener> getListeners()

getIntf

public java.lang.Class<T> getIntf()

recalculateOrder

protected void recalculateOrder()

appendPrecedence

public void appendPrecedence(java.lang.String precedence)

insertPrecedenceAfter

public void insertPrecedenceAfter(java.lang.String after,
                                  java.lang.String newPrecedence)

insertPrecedenceBefore

public void insertPrecedenceBefore(java.lang.String after,
                                   java.lang.String newPrecedence)

bind

public T[] bind(java.lang.Class declaring,
                java.lang.reflect.AccessibleObject target)

bindForList

public java.util.List<T> bindForList(java.lang.Class declaring,
                                     java.lang.reflect.AccessibleObject target)

addNewInterceptor

protected void addNewInterceptor(java.util.List<T> list,
                                 java.lang.Object interceptor)

register

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

register

public void register(T interceptor)


Copyright © 2010. All Rights Reserved.