|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.webbeans.intercept.InterceptorUtil
public final class InterceptorUtil
| Constructor Summary | |
|---|---|
InterceptorUtil(WebBeansContext webBeansContext)
|
|
| Method Summary | ||
|---|---|---|
Object |
callAroundInvokes(WebBeansContext webBeansContext,
InjectionTargetBean<?> bean,
Object instance,
CreationalContextImpl<?> creationalContext,
Method proceed,
Object[] arguments,
List<InterceptorData> stack,
javax.interceptor.InvocationContext ejbInvocationContext,
Object altKey)
|
|
|
checkAnnotatedTypeInterceptorConditions(javax.enterprise.inject.spi.AnnotatedType<T> annotatedType)
|
|
boolean |
checkGivenClassIsInInterceptorList(Class<?> mainClass,
Class<?> candidateClass)
Return true if given candidate is listed in interceptors list. |
|
boolean |
checkInInterceptorHierarchy(Class<?> interceptorClass,
Class<?> candidateClass)
Return true if candidate class is a super class of given interceptor class. |
|
void |
checkInterceptorConditions(javax.enterprise.inject.spi.AnnotatedType annotatedType)
|
|
|
checkLifecycleConditions(javax.enterprise.inject.spi.AnnotatedType<T> annotatedType,
Annotation[] annots,
String errorMessage)
|
|
|
checkLifecycleConditions(Class<T> clazz,
Annotation[] annots,
String errorMessage)
|
|
void |
checkSimpleWebBeansInterceptorConditions(Class<?> clazz)
|
|
void |
filterCommonInterceptorStackList(List<InterceptorData> stack,
Method method)
Filter bean interceptor stack. |
|
void |
filterOverridenAroundInvokeInterceptor(Class<?> beanClass,
List<InterceptorData> stack)
If an AroundInvoke method is overridden by another method (regardless of whether that method is itself an AroundInvoke method), it will not be invoked. |
|
void |
filterOverridenLifecycleInterceptor(Class<?> beanClass,
List<InterceptorData> stack)
Remove bean inherited and overriden lifecycle interceptor method from its stack list. |
|
Class<? extends Annotation> |
getInterceptorAnnotationClazz(javax.enterprise.inject.spi.InterceptionType type)
|
|
List<InterceptorData> |
getInterceptorMethods(List<InterceptorData> stack,
InterceptorType type)
Gets list of interceptors with the given type. |
|
|
isBusinessMethodInterceptor(javax.enterprise.inject.spi.AnnotatedType<T> annotatedType)
|
|
boolean |
isBusinessMethodInterceptor(Class<?> clazz)
|
|
|
isLifecycleMethodInterceptor(javax.enterprise.inject.spi.AnnotatedType<T> annotatedType)
|
|
boolean |
isLifecycleMethodInterceptor(Class<?> clazz)
|
|
boolean |
isWebBeansBusinessMethod(Method method)
Check if the given method is a 'business method' in the sense of the Interceptor specification |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InterceptorUtil(WebBeansContext webBeansContext)
| Method Detail |
|---|
public boolean isWebBeansBusinessMethod(Method method)
method -
true if the given method is an interceptable business methodpublic Class<? extends Annotation> getInterceptorAnnotationClazz(javax.enterprise.inject.spi.InterceptionType type)
public <T> boolean isBusinessMethodInterceptor(javax.enterprise.inject.spi.AnnotatedType<T> annotatedType)
public boolean isBusinessMethodInterceptor(Class<?> clazz)
public boolean isLifecycleMethodInterceptor(Class<?> clazz)
public <T> boolean isLifecycleMethodInterceptor(javax.enterprise.inject.spi.AnnotatedType<T> annotatedType)
public <T> void checkAnnotatedTypeInterceptorConditions(javax.enterprise.inject.spi.AnnotatedType<T> annotatedType)
public void checkInterceptorConditions(javax.enterprise.inject.spi.AnnotatedType annotatedType)
public <T> void checkLifecycleConditions(Class<T> clazz,
Annotation[] annots,
String errorMessage)
clazz - AUTSCH! we should use the AnnotatedType for all that stuff!
public <T> void checkLifecycleConditions(javax.enterprise.inject.spi.AnnotatedType<T> annotatedType,
Annotation[] annots,
String errorMessage)
public void checkSimpleWebBeansInterceptorConditions(Class<?> clazz)
public List<InterceptorData> getInterceptorMethods(List<InterceptorData> stack,
InterceptorType type)
stack - interceptor stacktype - interceptor type
public void filterCommonInterceptorStackList(List<InterceptorData> stack,
Method method)
stack - interceptor stackmethod - called method on proxy
public Object callAroundInvokes(WebBeansContext webBeansContext,
InjectionTargetBean<?> bean,
Object instance,
CreationalContextImpl<?> creationalContext,
Method proceed,
Object[] arguments,
List<InterceptorData> stack,
javax.interceptor.InvocationContext ejbInvocationContext,
Object altKey)
throws Exception
Exception
public boolean checkInInterceptorHierarchy(Class<?> interceptorClass,
Class<?> candidateClass)
interceptorClass - interceptor classcandidateClass - candaite class
public void filterOverridenLifecycleInterceptor(Class<?> beanClass,
List<InterceptorData> stack)
beanClass - bean classstack - bean interceptor stack
public void filterOverridenAroundInvokeInterceptor(Class<?> beanClass,
List<InterceptorData> stack)
beanClass - bean classstack - bean interceptor stack
public boolean checkGivenClassIsInInterceptorList(Class<?> mainClass,
Class<?> candidateClass)
mainClass - bean classcandidateClass - interceptor candidate class
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||