public class InterceptorsManager extends Object
Constructor and Description |
---|
InterceptorsManager(WebBeansContext webBeansContext) |
Modifier and Type | Method and Description |
---|---|
void |
addCdiInterceptor(javax.enterprise.inject.spi.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<javax.enterprise.inject.spi.Interceptor<?>> |
getCdiInterceptors() |
<T> javax.enterprise.inject.spi.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<javax.enterprise.inject.spi.Interceptor<?>> |
resolveInterceptors(javax.enterprise.inject.spi.InterceptionType type,
Annotation... interceptorBindings) |
void |
validateInterceptorClasses() |
public InterceptorsManager(WebBeansContext webBeansContext)
public void clear()
public void addEnabledInterceptorClass(Class<?> interceptorClazz)
public <T> javax.enterprise.inject.spi.Interceptor<T> getEjbInterceptorForClass(Class<T> interceptorClass)
T
- interceptorClass
- public int compareCdiInterceptors(Class<?> src, Class<?> target)
public boolean isInterceptorClassEnabled(Class<?> interceptorClazz)
public List<javax.enterprise.inject.spi.Interceptor<?>> resolveInterceptors(javax.enterprise.inject.spi.InterceptionType type, Annotation... interceptorBindings)
public void addCdiInterceptor(javax.enterprise.inject.spi.Interceptor interceptor)
InterceptorBinding
.interceptor
- public List<javax.enterprise.inject.spi.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–2016 The Apache Software Foundation. All rights reserved.