Class JaxrsInterceptorRegistryImpl<T>
- java.lang.Object
 - 
- org.jboss.resteasy.core.interception.jaxrs.JaxrsInterceptorRegistryImpl<T>
 
 
- 
- All Implemented Interfaces:
 JaxrsInterceptorRegistry<T>
- Direct Known Subclasses:
 ClientRequestFilterRegistryImpl,ClientResponseFilterRegistryImpl,ContainerRequestFilterRegistryImpl,ContainerResponseFilterRegistryImpl,ReaderInterceptorRegistryImpl,WriterInterceptorRegistryImpl
public class JaxrsInterceptorRegistryImpl<T> extends Object implements JaxrsInterceptorRegistry<T>
- Version:
 - $Revision: 1 $
 - Author:
 - Bill Burke
 
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description classJaxrsInterceptorRegistryImpl.AbstractInterceptorFactoryprotected classJaxrsInterceptorRegistryImpl.OnDemandInterceptorFactoryprotected classJaxrsInterceptorRegistryImpl.SingletonInterceptorFactory- 
Nested classes/interfaces inherited from interface org.jboss.resteasy.spi.interception.JaxrsInterceptorRegistry
JaxrsInterceptorRegistry.AscendingPrecedenceComparator, JaxrsInterceptorRegistry.DescendingPrecedenceComparator, JaxrsInterceptorRegistry.InterceptorFactory, JaxrsInterceptorRegistry.Match 
 - 
 
- 
Field Summary
Fields Modifier and Type Field Description protected T[]cachedPostMatchprotected T[]cachedPreMatchprotected List<JaxrsInterceptorRegistry.InterceptorFactory>interceptorsprotected Class<T>intfprotected List<JaxrsInterceptorRegistryListener>listenersprotected ResteasyProviderFactoryproviderFactory 
- 
Constructor Summary
Constructors Constructor Description JaxrsInterceptorRegistryImpl(ResteasyProviderFactory providerFactory, Class<T> intf) 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description JaxrsInterceptorRegistry<T>clone(ResteasyProviderFactory factory)Class<T>getIntf()List<JaxrsInterceptorRegistryListener>getListeners()protected static List<Class<? extends Annotation>>getNameBound(Class<?> declaring)static intgetPriority(Class<?> declaring)T[]postMatch(Class declaring, AccessibleObject target)T[]preMatch()voidregister(JaxrsInterceptorRegistry.InterceptorFactory factory)voidregisterClass(Class<? extends T> declaring)voidregisterClass(Class<? extends T> declaring, int priority)voidregisterSingleton(T interceptor)voidregisterSingleton(T interceptor, int priority)protected voidsort(List<JaxrsInterceptorRegistry.Match> matches) 
 - 
 
- 
- 
Field Detail
- 
interceptors
protected List<JaxrsInterceptorRegistry.InterceptorFactory> interceptors
 
- 
listeners
protected List<JaxrsInterceptorRegistryListener> listeners
 
- 
providerFactory
protected ResteasyProviderFactory providerFactory
 
- 
cachedPreMatch
protected volatile T[] cachedPreMatch
 
- 
cachedPostMatch
protected volatile T[] cachedPostMatch
 
 - 
 
- 
Constructor Detail
- 
JaxrsInterceptorRegistryImpl
public JaxrsInterceptorRegistryImpl(ResteasyProviderFactory providerFactory, Class<T> intf)
 
 - 
 
- 
Method Detail
- 
getNameBound
protected static List<Class<? extends Annotation>> getNameBound(Class<?> declaring)
 
- 
getPriority
public static int getPriority(Class<?> declaring)
 
- 
clone
public JaxrsInterceptorRegistry<T> clone(ResteasyProviderFactory factory)
- Specified by:
 clonein interfaceJaxrsInterceptorRegistry<T>
 
- 
getIntf
public Class<T> getIntf()
- Specified by:
 getIntfin interfaceJaxrsInterceptorRegistry<T>
 
- 
getListeners
public List<JaxrsInterceptorRegistryListener> getListeners()
- Specified by:
 getListenersin interfaceJaxrsInterceptorRegistry<T>
 
- 
preMatch
public T[] preMatch()
- Specified by:
 preMatchin interfaceJaxrsInterceptorRegistry<T>
 
- 
postMatch
public T[] postMatch(Class declaring, AccessibleObject target)
- Specified by:
 postMatchin interfaceJaxrsInterceptorRegistry<T>
 
- 
sort
protected void sort(List<JaxrsInterceptorRegistry.Match> matches)
 
- 
register
public void register(JaxrsInterceptorRegistry.InterceptorFactory factory)
- Specified by:
 registerin interfaceJaxrsInterceptorRegistry<T>
 
- 
registerClass
public void registerClass(Class<? extends T> declaring)
- Specified by:
 registerClassin interfaceJaxrsInterceptorRegistry<T>
 
- 
registerClass
public void registerClass(Class<? extends T> declaring, int priority)
- Specified by:
 registerClassin interfaceJaxrsInterceptorRegistry<T>
 
- 
registerSingleton
public void registerSingleton(T interceptor)
- Specified by:
 registerSingletonin interfaceJaxrsInterceptorRegistry<T>
 
- 
registerSingleton
public void registerSingleton(T interceptor, int priority)
- Specified by:
 registerSingletonin interfaceJaxrsInterceptorRegistry<T>
 
 - 
 
 -