Class JaxrsInterceptorRegistry<T>
- java.lang.Object
-
- org.jboss.resteasy.core.interception.JaxrsInterceptorRegistry<T>
-
- Direct Known Subclasses:
ClientResponseFilterRegistry
,ContainerRequestFilterRegistry
,ContainerResponseFilterRegistry
,ReaderInterceptorRegistry
,WriterInterceptorRegistry
public class JaxrsInterceptorRegistry<T> extends java.lang.Object
- Version:
- $Revision: 1 $
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
JaxrsInterceptorRegistry.AbstractInterceptorFactory
class
JaxrsInterceptorRegistry.AbstractLegacyInterceptorFactory
static class
JaxrsInterceptorRegistry.AscendingPrecedenceComparator
static class
JaxrsInterceptorRegistry.DescendingPrecedenceComparator
static interface
JaxrsInterceptorRegistry.InterceptorFactory
protected class
JaxrsInterceptorRegistry.LegacyPerMethodInterceptorFactory
protected class
JaxrsInterceptorRegistry.LegacySingletonInterceptorFactory
static class
JaxrsInterceptorRegistry.Match
protected class
JaxrsInterceptorRegistry.OnDemandInterceptorFactory
protected class
JaxrsInterceptorRegistry.SingletonInterceptorFactory
-
Field Summary
Fields Modifier and Type Field Description protected T[]
cachedPreMatch
protected java.util.List<JaxrsInterceptorRegistry.InterceptorFactory>
interceptors
protected java.lang.Class<T>
intf
protected java.util.List<JaxrsInterceptorRegistryListener>
listeners
protected ResteasyProviderFactory
providerFactory
-
Constructor Summary
Constructors Constructor Description JaxrsInterceptorRegistry(ResteasyProviderFactory providerFactory, java.lang.Class<T> intf)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description JaxrsInterceptorRegistry<T>
clone(ResteasyProviderFactory factory)
private T[]
createArray(java.util.List<JaxrsInterceptorRegistry.Match> matches)
java.lang.Class<T>
getIntf()
java.util.List<JaxrsInterceptorRegistryListener>
getListeners()
protected static java.util.List<java.lang.Class<? extends java.lang.annotation.Annotation>>
getNameBound(java.lang.Class<?> declaring)
static int
getPriority(java.lang.Class<?> declaring)
T[]
postMatch(java.lang.Class declaring, java.lang.reflect.AccessibleObject target)
T[]
preMatch()
void
register(JaxrsInterceptorRegistry.InterceptorFactory factory)
void
registerClass(java.lang.Class<? extends T> declaring)
void
registerClass(java.lang.Class<? extends T> declaring, int priority)
void
registerSingleton(T interceptor)
void
registerSingleton(T interceptor, int priority)
protected void
sort(java.util.List<JaxrsInterceptorRegistry.Match> matches)
-
-
-
Field Detail
-
interceptors
protected java.util.List<JaxrsInterceptorRegistry.InterceptorFactory> interceptors
-
listeners
protected java.util.List<JaxrsInterceptorRegistryListener> listeners
-
providerFactory
protected ResteasyProviderFactory providerFactory
-
intf
protected java.lang.Class<T> intf
-
cachedPreMatch
protected volatile T[] cachedPreMatch
-
-
Constructor Detail
-
JaxrsInterceptorRegistry
public JaxrsInterceptorRegistry(ResteasyProviderFactory providerFactory, java.lang.Class<T> intf)
-
-
Method Detail
-
getNameBound
protected static java.util.List<java.lang.Class<? extends java.lang.annotation.Annotation>> getNameBound(java.lang.Class<?> declaring)
-
getPriority
public static int getPriority(java.lang.Class<?> declaring)
-
clone
public JaxrsInterceptorRegistry<T> clone(ResteasyProviderFactory factory)
-
getIntf
public java.lang.Class<T> getIntf()
-
getListeners
public java.util.List<JaxrsInterceptorRegistryListener> getListeners()
-
preMatch
public T[] preMatch()
-
postMatch
public T[] postMatch(java.lang.Class declaring, java.lang.reflect.AccessibleObject target)
-
createArray
private T[] createArray(java.util.List<JaxrsInterceptorRegistry.Match> matches)
-
sort
protected void sort(java.util.List<JaxrsInterceptorRegistry.Match> matches)
-
register
public void register(JaxrsInterceptorRegistry.InterceptorFactory factory)
-
registerClass
public void registerClass(java.lang.Class<? extends T> declaring)
-
registerClass
public void registerClass(java.lang.Class<? extends T> declaring, int priority)
-
registerSingleton
public void registerSingleton(T interceptor)
-
registerSingleton
public void registerSingleton(T interceptor, int priority)
-
-