JBoss EJB 3.1 Common Interceptor Library Parent 2.0.0.Final

org.jboss.interceptor.util
Class InterceptionUtils

java.lang.Object
  extended by org.jboss.interceptor.util.InterceptionUtils

public class InterceptionUtils
extends Object

Author:
Marius Bogoevici

Field Summary
static String POST_CONSTRUCT
           
static String PRE_DESTROY
           
 
Constructor Summary
InterceptionUtils()
           
 
Method Summary
static
<T> Class<T>
createProxyClass(Class<T> proxyClass, boolean forSubclassing)
           
static
<T> Class<T>
createProxyClassWithHandler(ClassMetadata<T> proxyClass, javassist.util.proxy.MethodHandler methodHandler)
           
static void executePostConstruct(Object proxy)
           
static void executePostConstruct(Object proxy, Callable callback)
           
static void executePredestroy(Object proxy)
           
static void executePredestroy(Object proxy, Callable callback)
           
static Class<? extends Annotation> getExcludeClassInterceptorsAnnotationClass()
           
static Class<? extends Annotation> getInterceptorsAnnotationClass()
           
static boolean isInterceptionCandidate(Method method)
           
static boolean supportsEjb3InterceptorDeclaration()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

InterceptionUtils

public InterceptionUtils()
Method Detail

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)

JBoss EJB 3.1 Common Interceptor Library Parent 2.0.0.Final

Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.