org.jboss.interceptor.util
Class InterceptionUtils
java.lang.Object
org.jboss.interceptor.util.InterceptionUtils
public class InterceptionUtils
- extends Object
- Author:
- Marius Bogoevici
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
POST_CONSTRUCT
public static final String POST_CONSTRUCT
- See Also:
- Constant Field Values
PRE_DESTROY
public static final String PRE_DESTROY
- See Also:
- Constant Field Values
InterceptionUtils
public InterceptionUtils()
executePostConstruct
public static void executePostConstruct(Object proxy,
Callable callback)
executePostConstruct
public static void executePostConstruct(Object proxy)
executePredestroy
public static void executePredestroy(Object proxy,
Callable callback)
executePredestroy
public static void executePredestroy(Object proxy)
isInterceptionCandidate
public static boolean isInterceptionCandidate(Method method)
- Parameters:
method -
- Returns:
- true if the method has none of the interception type annotations, and is public and not static
false otherwise
supportsEjb3InterceptorDeclaration
public static boolean supportsEjb3InterceptorDeclaration()
getInterceptorsAnnotationClass
public static Class<? extends Annotation> getInterceptorsAnnotationClass()
getExcludeClassInterceptorsAnnotationClass
public static Class<? extends Annotation> getExcludeClassInterceptorsAnnotationClass()
createProxyClass
public static <T> Class<T> createProxyClass(Class<T> proxyClass,
boolean forSubclassing)
createProxyClassWithHandler
public static <T> Class<T> createProxyClassWithHandler(ClassMetadata<T> proxyClass,
javassist.util.proxy.MethodHandler methodHandler)
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.