|
||||||||||
| 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
| Method Summary | ||
|---|---|---|
static Object |
callAroundInvokes(InjectionTargetBean<?> bean,
Object instance,
CreationalContextImpl<?> creationalContext,
Method proceed,
Object[] arguments,
List<InterceptorData> stack,
InvocationContext ejbInvocationContext,
Object altKey)
|
|
static
|
checkAnnotatedTypeInterceptorConditions(AnnotatedType<T> annotatedType)
|
|
static boolean |
checkGivenClassIsInInterceptorList(Class<?> mainClass,
Class<?> candidateClass)
Return true if given candidate is listed in interceptors list. |
|
static boolean |
checkInInterceptorHierarchy(Class<?> interceptorClass,
Class<?> candidateClass)
Return true if candidate class is a super class of given interceptor class. |
|
static void |
checkInterceptorConditions(Class<?> clazz)
|
|
static
|
checkLifecycleConditions(AnnotatedType<T> annotatedType,
Annotation[] annots,
String errorMessage)
|
|
static
|
checkLifecycleConditions(Class<T> clazz,
Annotation[] annots,
String errorMessage)
|
|
static void |
checkSimpleWebBeansInterceptorConditions(Class<?> clazz)
|
|
static void |
filterCommonInterceptorStackList(List<InterceptorData> stack,
Method method)
Filter bean interceptor stack. |
|
static 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. |
|
static void |
filterOverridenLifecycleInterceptor(Class<?> beanClass,
List<InterceptorData> stack)
Remove bean inherited and overriden lifecycle interceptor method from its stack list. |
|
static Class<? extends Annotation> |
getInterceptorAnnotationClazz(InterceptionType type)
|
|
static List<InterceptorData> |
getInterceptorMethods(List<InterceptorData> stack,
InterceptorType type)
Gets list of interceptors with the given type. |
|
static
|
isBusinessMethodInterceptor(AnnotatedType<T> annotatedType)
|
|
static boolean |
isBusinessMethodInterceptor(Class<?> clazz)
|
|
static
|
isLifecycleMethodInterceptor(AnnotatedType<T> annotatedType)
|
|
static boolean |
isLifecycleMethodInterceptor(Class<?> clazz)
|
|
static 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 |
| Method Detail |
|---|
public static boolean isWebBeansBusinessMethod(Method method)
method -
true if the given method is an interceptable business methodpublic static Class<? extends Annotation> getInterceptorAnnotationClazz(InterceptionType type)
public static <T> boolean isBusinessMethodInterceptor(AnnotatedType<T> annotatedType)
public static boolean isBusinessMethodInterceptor(Class<?> clazz)
public static boolean isLifecycleMethodInterceptor(Class<?> clazz)
public static <T> boolean isLifecycleMethodInterceptor(AnnotatedType<T> annotatedType)
public static <T> void checkAnnotatedTypeInterceptorConditions(AnnotatedType<T> annotatedType)
public static void checkInterceptorConditions(Class<?> clazz)
public static <T> void checkLifecycleConditions(Class<T> clazz,
Annotation[] annots,
String errorMessage)
public static <T> void checkLifecycleConditions(AnnotatedType<T> annotatedType,
Annotation[] annots,
String errorMessage)
public static void checkSimpleWebBeansInterceptorConditions(Class<?> clazz)
public static List<InterceptorData> getInterceptorMethods(List<InterceptorData> stack,
InterceptorType type)
stack - interceptor stacktype - interceptor type
public static void filterCommonInterceptorStackList(List<InterceptorData> stack,
Method method)
stack - interceptor stackmethod - called method on proxyownerCreationalContext - bean creational context
public static Object callAroundInvokes(InjectionTargetBean<?> bean,
Object instance,
CreationalContextImpl<?> creationalContext,
Method proceed,
Object[] arguments,
List<InterceptorData> stack,
InvocationContext ejbInvocationContext,
Object altKey)
throws Exception
Exception
public static boolean checkInInterceptorHierarchy(Class<?> interceptorClass,
Class<?> candidateClass)
interceptorClass - interceptor classcandidateClass - candaite class
public static void filterOverridenLifecycleInterceptor(Class<?> beanClass,
List<InterceptorData> stack)
clazz - bean classstack - bean interceptor stack
public static void filterOverridenAroundInvokeInterceptor(Class<?> beanClass,
List<InterceptorData> stack)
clazz - bean classstack - bean interceptor stack
public static 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 | |||||||||