public class JaxrsInterceptorRegistry<T>
extends java.lang.Object
Modifier and Type | Class and 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 |
Modifier and Type | Field and 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 and Description |
---|
JaxrsInterceptorRegistry(ResteasyProviderFactory providerFactory,
java.lang.Class<T> intf) |
Modifier and Type | Method and 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) |
protected java.util.List<JaxrsInterceptorRegistry.InterceptorFactory> interceptors
protected java.util.List<JaxrsInterceptorRegistryListener> listeners
protected ResteasyProviderFactory providerFactory
protected java.lang.Class<T> intf
protected volatile T[] cachedPreMatch
public JaxrsInterceptorRegistry(ResteasyProviderFactory providerFactory, java.lang.Class<T> intf)
protected static java.util.List<java.lang.Class<? extends java.lang.annotation.Annotation>> getNameBound(java.lang.Class<?> declaring)
public static int getPriority(java.lang.Class<?> declaring)
public JaxrsInterceptorRegistry<T> clone(ResteasyProviderFactory factory)
public java.lang.Class<T> getIntf()
public java.util.List<JaxrsInterceptorRegistryListener> getListeners()
public T[] preMatch()
public T[] postMatch(java.lang.Class declaring, java.lang.reflect.AccessibleObject target)
private T[] createArray(java.util.List<JaxrsInterceptorRegistry.Match> matches)
protected void sort(java.util.List<JaxrsInterceptorRegistry.Match> matches)
public void register(JaxrsInterceptorRegistry.InterceptorFactory factory)
public void registerClass(java.lang.Class<? extends T> declaring)
public void registerClass(java.lang.Class<? extends T> declaring, int priority)
public void registerSingleton(T interceptor)
public void registerSingleton(T interceptor, int priority)