com.caucho.config.gen
Class CandiUtil
java.lang.Object
com.caucho.config.gen.CandiUtil
public class CandiUtil
- extends java.lang.Object
Utilities
Method Summary |
static java.lang.reflect.Method[] |
createDecoratorMethods(java.util.List<Decorator<?>> decorators,
java.lang.String methodName,
java.lang.Class<?>... paramTypes)
|
static void |
createInterceptors(InjectManager manager,
java.util.ArrayList<Interceptor<?>> beans,
java.lang.annotation.Annotation... bindings)
|
static void |
createInterceptors(InjectManager manager,
java.util.ArrayList<Interceptor<?>> beans,
InterceptionType type,
java.lang.annotation.Annotation... bindings)
|
static int[] |
createInterceptors(InjectManager manager,
java.util.ArrayList<InterceptorRuntimeBean<?>> staticBeans,
java.util.ArrayList<Interceptor<?>> beans,
int[] staticIndexList,
InterceptionType type,
java.lang.annotation.Annotation... bindings)
|
static Interceptor<?>[] |
createMethods(java.util.ArrayList<Interceptor<?>> beans,
InterceptionType type,
int[] indexChain)
|
static void |
dummyPostConstruct()
|
static void |
dummyPreDestroy()
|
static java.lang.reflect.Method |
findAccessibleMethod(java.lang.Class<?> cl,
java.lang.String methodName,
java.lang.Class<?>... paramTypes)
|
static java.lang.reflect.Method |
findMethod(java.lang.Class<?> cl,
java.lang.String methodName,
java.lang.Class<?>... paramTypes)
|
static java.lang.Object[] |
generateProxyDelegate(InjectManager manager,
java.util.List<Decorator<?>> beans,
java.lang.Object delegateProxy,
CreationalContextImpl<?> parentEnv)
|
static java.lang.reflect.Method |
getDummyPostConstruct()
|
static java.lang.reflect.Method |
getDummyPreDestroy()
|
static java.lang.reflect.Method |
getMethod(java.lang.Class<?> cl,
java.lang.String methodName,
java.lang.Class<?>... paramTypes)
|
static java.lang.Class<?> |
getRawClass(java.lang.reflect.Type type)
|
static java.lang.Object |
invoke(java.lang.reflect.Method method,
java.lang.Object bean,
java.lang.Object... args)
|
static int |
nextDelegate(java.lang.Object[] beans,
java.lang.Class<?>[] apis,
int index)
|
static int |
nextDelegate(java.lang.Object[] beans,
java.lang.reflect.Method[] methods,
int index)
|
static void |
validatePassivating(java.lang.Class<?> cl,
java.util.ArrayList<Interceptor<?>> beans)
|
static void |
validatePassivating(java.lang.Class<?> cl,
Bean<?> bean,
java.lang.String typeName)
|
static void |
validatePassivatingDecorators(java.lang.Class<?> cl,
java.util.List<Decorator<?>> beans)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NULL_OBJECT_ARRAY
public static final java.lang.Object[] NULL_OBJECT_ARRAY
invoke
public static java.lang.Object invoke(java.lang.reflect.Method method,
java.lang.Object bean,
java.lang.Object... args)
createInterceptors
public static int[] createInterceptors(InjectManager manager,
java.util.ArrayList<InterceptorRuntimeBean<?>> staticBeans,
java.util.ArrayList<Interceptor<?>> beans,
int[] staticIndexList,
InterceptionType type,
java.lang.annotation.Annotation... bindings)
createInterceptors
public static void createInterceptors(InjectManager manager,
java.util.ArrayList<Interceptor<?>> beans,
java.lang.annotation.Annotation... bindings)
createInterceptors
public static void createInterceptors(InjectManager manager,
java.util.ArrayList<Interceptor<?>> beans,
InterceptionType type,
java.lang.annotation.Annotation... bindings)
validatePassivating
public static void validatePassivating(java.lang.Class<?> cl,
java.util.ArrayList<Interceptor<?>> beans)
validatePassivatingDecorators
public static void validatePassivatingDecorators(java.lang.Class<?> cl,
java.util.List<Decorator<?>> beans)
validatePassivating
public static void validatePassivating(java.lang.Class<?> cl,
Bean<?> bean,
java.lang.String typeName)
getRawClass
public static java.lang.Class<?> getRawClass(java.lang.reflect.Type type)
createMethods
public static Interceptor<?>[] createMethods(java.util.ArrayList<Interceptor<?>> beans,
InterceptionType type,
int[] indexChain)
createDecoratorMethods
public static java.lang.reflect.Method[] createDecoratorMethods(java.util.List<Decorator<?>> decorators,
java.lang.String methodName,
java.lang.Class<?>... paramTypes)
getMethod
public static java.lang.reflect.Method getMethod(java.lang.Class<?> cl,
java.lang.String methodName,
java.lang.Class<?>... paramTypes)
throws java.lang.Exception
- Throws:
java.lang.Exception
findMethod
public static java.lang.reflect.Method findMethod(java.lang.Class<?> cl,
java.lang.String methodName,
java.lang.Class<?>... paramTypes)
findAccessibleMethod
public static java.lang.reflect.Method findAccessibleMethod(java.lang.Class<?> cl,
java.lang.String methodName,
java.lang.Class<?>... paramTypes)
generateProxyDelegate
public static java.lang.Object[] generateProxyDelegate(InjectManager manager,
java.util.List<Decorator<?>> beans,
java.lang.Object delegateProxy,
CreationalContextImpl<?> parentEnv)
nextDelegate
public static int nextDelegate(java.lang.Object[] beans,
java.lang.reflect.Method[] methods,
int index)
nextDelegate
public static int nextDelegate(java.lang.Object[] beans,
java.lang.Class<?>[] apis,
int index)
getDummyPostConstruct
public static java.lang.reflect.Method getDummyPostConstruct()
dummyPostConstruct
public static void dummyPostConstruct()
getDummyPreDestroy
public static java.lang.reflect.Method getDummyPreDestroy()
dummyPreDestroy
public static void dummyPreDestroy()