public class JaxrsInterceptorRegistryImpl<T> extends Object implements JaxrsInterceptorRegistry<T>
Modifier and Type | Class and Description |
---|---|
class |
JaxrsInterceptorRegistryImpl.AbstractInterceptorFactory |
protected class |
JaxrsInterceptorRegistryImpl.OnDemandInterceptorFactory |
protected class |
JaxrsInterceptorRegistryImpl.SingletonInterceptorFactory |
JaxrsInterceptorRegistry.AscendingPrecedenceComparator, JaxrsInterceptorRegistry.DescendingPrecedenceComparator, JaxrsInterceptorRegistry.InterceptorFactory, JaxrsInterceptorRegistry.Match
Modifier and Type | Field and Description |
---|---|
protected T[] |
cachedPostMatch |
protected T[] |
cachedPreMatch |
protected List<JaxrsInterceptorRegistry.InterceptorFactory> |
interceptors |
protected Class<T> |
intf |
protected List<JaxrsInterceptorRegistryListener> |
listeners |
protected ResteasyProviderFactory |
providerFactory |
Constructor and Description |
---|
JaxrsInterceptorRegistryImpl(ResteasyProviderFactory providerFactory,
Class<T> intf) |
Modifier and Type | Method and Description |
---|---|
JaxrsInterceptorRegistry<T> |
clone(ResteasyProviderFactory factory) |
Class<T> |
getIntf() |
List<JaxrsInterceptorRegistryListener> |
getListeners() |
protected static List<Class<? extends Annotation>> |
getNameBound(Class<?> declaring) |
static int |
getPriority(Class<?> declaring) |
T[] |
postMatch(Class declaring,
AccessibleObject target) |
T[] |
preMatch() |
void |
register(JaxrsInterceptorRegistry.InterceptorFactory factory) |
void |
registerClass(Class<? extends T> declaring) |
void |
registerClass(Class<? extends T> declaring,
int priority) |
void |
registerSingleton(T interceptor) |
void |
registerSingleton(T interceptor,
int priority) |
protected void |
sort(List<JaxrsInterceptorRegistry.Match> matches) |
protected List<JaxrsInterceptorRegistry.InterceptorFactory> interceptors
protected List<JaxrsInterceptorRegistryListener> listeners
protected ResteasyProviderFactory providerFactory
protected volatile T[] cachedPreMatch
protected volatile T[] cachedPostMatch
public JaxrsInterceptorRegistryImpl(ResteasyProviderFactory providerFactory, Class<T> intf)
protected static List<Class<? extends Annotation>> getNameBound(Class<?> declaring)
public static int getPriority(Class<?> declaring)
public JaxrsInterceptorRegistry<T> clone(ResteasyProviderFactory factory)
clone
in interface JaxrsInterceptorRegistry<T>
public Class<T> getIntf()
getIntf
in interface JaxrsInterceptorRegistry<T>
public List<JaxrsInterceptorRegistryListener> getListeners()
getListeners
in interface JaxrsInterceptorRegistry<T>
public T[] preMatch()
preMatch
in interface JaxrsInterceptorRegistry<T>
public T[] postMatch(Class declaring, AccessibleObject target)
postMatch
in interface JaxrsInterceptorRegistry<T>
protected void sort(List<JaxrsInterceptorRegistry.Match> matches)
public void register(JaxrsInterceptorRegistry.InterceptorFactory factory)
register
in interface JaxrsInterceptorRegistry<T>
public void registerClass(Class<? extends T> declaring)
registerClass
in interface JaxrsInterceptorRegistry<T>
public void registerClass(Class<? extends T> declaring, int priority)
registerClass
in interface JaxrsInterceptorRegistry<T>
public void registerSingleton(T interceptor)
registerSingleton
in interface JaxrsInterceptorRegistry<T>
public void registerSingleton(T interceptor, int priority)
registerSingleton
in interface JaxrsInterceptorRegistry<T>
Copyright © 2019 JBoss by Red Hat. All rights reserved.