public class InterceptorsManager extends Object
| Constructor and Description |
|---|
InterceptorsManager(WebBeansContext webBeansContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCdiInterceptor(Interceptor interceptor)
Add a CDI-style interceptor.
|
void |
addCustomInterceptorClass(Class<?> clazz) |
void |
addEnabledInterceptorClass(Class<?> interceptorClazz)
Add a certain class to the enabled interceptors list.
|
void |
addInterceptorBindingType(Class<? extends Annotation> bindingType,
Annotation... inheritsArray) |
void |
clear()
Clears all info.
|
int |
compareCdiInterceptors(Class<?> src,
Class<?> target)
Helper to compare the order of different interceptor classes
|
boolean |
containsCustomInterceptorClass(Class<?> clazz) |
List<Interceptor<?>> |
getCdiInterceptors() |
<T> Interceptor<T> |
getEjbInterceptorForClass(Class<T> interceptorClass)
get the EJB-style Interceptor
|
boolean |
hasInterceptorBindingType(Class<? extends Annotation> bindingType) |
boolean |
isInterceptorClassEnabled(Class<?> interceptorClazz)
Check if the given interceptor class is in the list of enabled interceptors.
|
List<Interceptor<?>> |
resolveInterceptors(InterceptionType type,
Annotation... interceptorBindings) |
void |
validateInterceptorClasses() |
public InterceptorsManager(WebBeansContext webBeansContext)
public void clear()
public void addEnabledInterceptorClass(Class<?> interceptorClazz)
public <T> Interceptor<T> getEjbInterceptorForClass(Class<T> interceptorClass)
T - interceptorClass - public int compareCdiInterceptors(Class<?> src, Class<?> target)
public boolean isInterceptorClassEnabled(Class<?> interceptorClazz)
public List<Interceptor<?>> resolveInterceptors(InterceptionType type, Annotation... interceptorBindings)
public void addCdiInterceptor(Interceptor interceptor)
InterceptorBinding.interceptor - public List<Interceptor<?>> getCdiInterceptors()
public void addCustomInterceptorClass(Class<?> clazz)
public boolean containsCustomInterceptorClass(Class<?> clazz)
public void addInterceptorBindingType(Class<? extends Annotation> bindingType, Annotation... inheritsArray)
public boolean hasInterceptorBindingType(Class<? extends Annotation> bindingType)
public void validateInterceptorClasses()
Copyright © 2008–2015 The Apache Software Foundation. All rights reserved.