public class Config extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.jboss.logging.Logger |
log
The log
|
Constructor and Description |
---|
Config() |
Modifier and Type | Method and Description |
---|---|
static void |
configure(Object object,
JoinpointFactory jpf,
String name,
Object value)
Configure a field
|
static boolean |
equals(String[] typeNames,
TypeInfo[] typeInfos)
Test whether type names are equal to type infos
|
static ConstructorInfo |
findConstructorInfo(ClassInfo classInfo,
String[] paramTypes)
Find constructor info
|
static FieldInfo |
findFieldInfo(ClassInfo classInfo,
String name)
Find field info
|
static MethodInfo |
findMethodInfo(ClassInfo classInfo,
String name,
String[] paramTypes)
Find method info
|
static MethodInfo |
findMethodInfo(ClassInfo classInfo,
String name,
String[] paramTypes,
boolean strict)
Find method info
|
static MethodInfo |
findMethodInfo(ClassInfo classInfo,
String name,
String[] paramTypes,
boolean isStatic,
boolean isPublic)
Find method info
|
static MethodInfo |
findMethodInfo(ClassInfo classInfo,
String name,
String[] paramTypes,
boolean isStatic,
boolean isPublic,
boolean strict)
Find method info
|
static ConstructorJoinpoint |
getConstructorJoinpoint(JoinpointFactory jpf)
Get a constructor Joinpoint
|
static ConstructorJoinpoint |
getConstructorJoinpoint(JoinpointFactory jpf,
String[] paramTypes,
Object[] params)
Get a constructor Joinpoint
|
static FieldGetJoinpoint |
getFieldGetJoinpoint(Object object,
JoinpointFactory jpf,
String name)
Get a field get joinpoint
|
static FieldSetJoinpoint |
getFieldSetJoinpoint(Object object,
JoinpointFactory jpf,
String name,
Object value)
Get a field set joinpoint
|
static MethodJoinpoint |
getMethodJoinpoint(Object object,
JoinpointFactory jpf,
String name,
String[] paramTypes,
Object[] params)
Get a method joinpoint
|
static MethodJoinpoint |
getStaticMethodJoinpoint(JoinpointFactory jpf,
String name,
String[] paramTypes,
Object[] params)
Get a static method joinpoint
|
static Object |
instantiate(JoinpointFactory jpf,
String[] paramTypes,
Object[] params)
Instantiate an object
|
static Object |
invoke(Object object,
JoinpointFactory jpf,
String name,
String[] paramTypes,
Object[] params)
Invoke a method
|
protected static boolean |
simpleCheck(String[] typeNames,
TypeInfo[] typeInfos)
A simple null and length check.
|
static void |
unconfigure(Object object,
JoinpointFactory jpf,
String name)
Unconfigure a field
|
public static Object instantiate(JoinpointFactory jpf, String[] paramTypes, Object[] params) throws Throwable
jpf
- the join point factoryparamTypes
- the parameter typesparams
- the parametersThrowable
- for any errorpublic static void configure(Object object, JoinpointFactory jpf, String name, Object value) throws Throwable
object
- the object to configurejpf
- the join point factoryname
- the name of the fieldvalue
- the valueThrowable
- for any errorpublic static void unconfigure(Object object, JoinpointFactory jpf, String name) throws Throwable
object
- the object to unconfigurejpf
- the join point factoryname
- the name of the fieldThrowable
- for any errorpublic static Object invoke(Object object, JoinpointFactory jpf, String name, String[] paramTypes, Object[] params) throws Throwable
object
- the object to invokejpf
- the join point factoryname
- the name of the methodparamTypes
- the parameter typesparams
- the parametersThrowable
- for any errorpublic static ConstructorJoinpoint getConstructorJoinpoint(JoinpointFactory jpf) throws Throwable
jpf
- the join point factoryThrowable
- for any errorpublic static ConstructorJoinpoint getConstructorJoinpoint(JoinpointFactory jpf, String[] paramTypes, Object[] params) throws Throwable
jpf
- the join point factoryparamTypes
- the parameter typesparams
- the parametersThrowable
- for any errorpublic static FieldGetJoinpoint getFieldGetJoinpoint(Object object, JoinpointFactory jpf, String name) throws Throwable
object
- the object to configurejpf
- the join point factoryname
- the name of the fieldThrowable
- for any errorpublic static FieldSetJoinpoint getFieldSetJoinpoint(Object object, JoinpointFactory jpf, String name, Object value) throws Throwable
object
- the object to configurejpf
- the join point factoryname
- the name of the fieldvalue
- the valueThrowable
- for any errorpublic static MethodJoinpoint getMethodJoinpoint(Object object, JoinpointFactory jpf, String name, String[] paramTypes, Object[] params) throws Throwable
object
- the object to invokejpf
- the join point factoryname
- the name of the methodparamTypes
- the parameter typesparams
- the parametersThrowable
- for any errorpublic static MethodJoinpoint getStaticMethodJoinpoint(JoinpointFactory jpf, String name, String[] paramTypes, Object[] params) throws Throwable
jpf
- the join point factoryname
- the name of the methodparamTypes
- the parameter typesparams
- the parametersThrowable
- for any errorpublic static ConstructorInfo findConstructorInfo(ClassInfo classInfo, String[] paramTypes) throws JoinpointException
classInfo
- the class infoparamTypes
- the parameter typesJoinpointException
- when no such constructorpublic static FieldInfo findFieldInfo(ClassInfo classInfo, String name) throws JoinpointException
classInfo
- the class infoname
- the field nameJoinpointException
- when no such fieldpublic static MethodInfo findMethodInfo(ClassInfo classInfo, String name, String[] paramTypes) throws JoinpointException
classInfo
- the class infoname
- the method nameparamTypes
- the parameter typesJoinpointException
- when no such methodpublic static MethodInfo findMethodInfo(ClassInfo classInfo, String name, String[] paramTypes, boolean strict) throws JoinpointException
classInfo
- the class infoname
- the method nameparamTypes
- the parameter typesstrict
- is strict about method modifiersJoinpointException
- when no such methodpublic static MethodInfo findMethodInfo(ClassInfo classInfo, String name, String[] paramTypes, boolean isStatic, boolean isPublic) throws JoinpointException
classInfo
- the class infoname
- the method nameparamTypes
- the parameter typesisStatic
- must the method be staticisPublic
- must the method be publicJoinpointException
- when no such methodpublic static MethodInfo findMethodInfo(ClassInfo classInfo, String name, String[] paramTypes, boolean isStatic, boolean isPublic, boolean strict) throws JoinpointException
classInfo
- the class infoname
- the method nameparamTypes
- the parameter typesisStatic
- must the method be staticisPublic
- must the method be publicstrict
- is strict about method modifiersJoinpointException
- when no such methodpublic static boolean equals(String[] typeNames, TypeInfo[] typeInfos)
typeNames
- the type namestypeInfos
- the type infosCopyright © 2013 JBoss, a division of Red Hat, Inc.. All rights reserved.