|
||||||||||
| 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 | ||
|---|---|---|
java.lang.Object |
callAroundInvokes(WebBeansContext webBeansContext,
InjectionTargetBean<?> bean,
java.lang.Object instance,
CreationalContextImpl<?> creationalContext,
java.lang.reflect.Method proceed,
java.lang.Object[] arguments,
java.util.List<InterceptorData> stack,
javax.interceptor.InvocationContext ejbInvocationContext,
java.lang.Object altKey)
|
|
|
checkAnnotatedTypeInterceptorConditions(javax.enterprise.inject.spi.AnnotatedType<T> annotatedType)
|
|
boolean |
checkGivenClassIsInInterceptorList(java.lang.Class<?> mainClass,
java.lang.Class<?> candidateClass)
Return true if given candidate is listed in interceptors list. |
|
boolean |
checkInInterceptorHierarchy(java.lang.Class<?> interceptorClass,
java.lang.Class<?> candidateClass)
Return true if candidate class is a super class of given interceptor class. |
|
void |
checkInterceptorConditions(java.lang.Class<?> clazz)
|
|
|
checkLifecycleConditions(javax.enterprise.inject.spi.AnnotatedType<T> annotatedType,
java.lang.annotation.Annotation[] annots,
java.lang.String errorMessage)
|
|
|
checkLifecycleConditions(java.lang.Class<T> clazz,
java.lang.annotation.Annotation[] annots,
java.lang.String errorMessage)
|
|
void |
checkSimpleWebBeansInterceptorConditions(java.lang.Class<?> clazz)
|
|
void |
filterCommonInterceptorStackList(java.util.List<InterceptorData> stack,
java.lang.reflect.Method method)
Filter bean interceptor stack. |
|
void |
filterOverridenAroundInvokeInterceptor(java.lang.Class<?> beanClass,
java.util.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(java.lang.Class<?> beanClass,
java.util.List<InterceptorData> stack)
Remove bean inherited and overriden lifecycle interceptor method from its stack list. |
|
java.lang.Class<? extends java.lang.annotation.Annotation> |
getInterceptorAnnotationClazz(javax.enterprise.inject.spi.InterceptionType type)
|
|
java.util.List<InterceptorData> |
getInterceptorMethods(java.util.List<InterceptorData> stack,
InterceptorType type)
Gets list of interceptors with the given type. |
|
|
isBusinessMethodInterceptor(javax.enterprise.inject.spi.AnnotatedType<T> annotatedType)
|
|
boolean |
isBusinessMethodInterceptor(java.lang.Class<?> clazz)
|
|
|
isLifecycleMethodInterceptor(javax.enterprise.inject.spi.AnnotatedType<T> annotatedType)
|
|
boolean |
isLifecycleMethodInterceptor(java.lang.Class<?> clazz)
|
|
boolean |
isWebBeansBusinessMethod(java.lang.reflect.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(java.lang.reflect.Method method)
method -
true if the given method is an interceptable business methodpublic java.lang.Class<? extends java.lang.annotation.Annotation> getInterceptorAnnotationClazz(javax.enterprise.inject.spi.InterceptionType type)
public <T> boolean isBusinessMethodInterceptor(javax.enterprise.inject.spi.AnnotatedType<T> annotatedType)
public boolean isBusinessMethodInterceptor(java.lang.Class<?> clazz)
public boolean isLifecycleMethodInterceptor(java.lang.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(java.lang.Class<?> clazz)
public <T> void checkLifecycleConditions(java.lang.Class<T> clazz,
java.lang.annotation.Annotation[] annots,
java.lang.String errorMessage)
public <T> void checkLifecycleConditions(javax.enterprise.inject.spi.AnnotatedType<T> annotatedType,
java.lang.annotation.Annotation[] annots,
java.lang.String errorMessage)
public void checkSimpleWebBeansInterceptorConditions(java.lang.Class<?> clazz)
public java.util.List<InterceptorData> getInterceptorMethods(java.util.List<InterceptorData> stack,
InterceptorType type)
stack - interceptor stacktype - interceptor type
public void filterCommonInterceptorStackList(java.util.List<InterceptorData> stack,
java.lang.reflect.Method method)
stack - interceptor stackmethod - called method on proxy
public java.lang.Object callAroundInvokes(WebBeansContext webBeansContext,
InjectionTargetBean<?> bean,
java.lang.Object instance,
CreationalContextImpl<?> creationalContext,
java.lang.reflect.Method proceed,
java.lang.Object[] arguments,
java.util.List<InterceptorData> stack,
javax.interceptor.InvocationContext ejbInvocationContext,
java.lang.Object altKey)
throws java.lang.Exception
java.lang.Exception
public boolean checkInInterceptorHierarchy(java.lang.Class<?> interceptorClass,
java.lang.Class<?> candidateClass)
interceptorClass - interceptor classcandidateClass - candaite class
public void filterOverridenLifecycleInterceptor(java.lang.Class<?> beanClass,
java.util.List<InterceptorData> stack)
beanClass - bean classstack - bean interceptor stack
public void filterOverridenAroundInvokeInterceptor(java.lang.Class<?> beanClass,
java.util.List<InterceptorData> stack)
beanClass - bean classstack - bean interceptor stack
public boolean checkGivenClassIsInInterceptorList(java.lang.Class<?> mainClass,
java.lang.Class<?> candidateClass)
mainClass - bean classcandidateClass - interceptor candidate class
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||