|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.joinpoint.plugins.config.Config
public class Config
Config utilities.
Field Summary | |
---|---|
protected static org.jboss.logging.Logger |
log
The log |
Constructor Summary | |
---|---|
Config()
|
Method Summary | |
---|---|
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 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 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 |
static void |
unconfigure(Object object,
JoinpointFactory jpf,
String name)
Unconfigure a field |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final org.jboss.logging.Logger log
Constructor Detail |
---|
public Config()
Method Detail |
---|
public static Object instantiate(JoinpointFactory jpf, String[] paramTypes, Object[] params) throws Throwable
jpf
- the join point factoryparamTypes
- the parameter typesparams
- the parameters
Throwable
- 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 value
Throwable
- 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 field
Throwable
- 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 parameters
Throwable
- for any errorpublic static ConstructorJoinpoint getConstructorJoinpoint(JoinpointFactory jpf) throws Throwable
jpf
- the join point factory
Throwable
- for any errorpublic static ConstructorJoinpoint getConstructorJoinpoint(JoinpointFactory jpf, String[] paramTypes, Object[] params) throws Throwable
jpf
- the join point factoryparamTypes
- the parameter typesparams
- the parameters
Throwable
- 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 field
Throwable
- 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 value
Throwable
- 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 parameters
Throwable
- for any errorpublic static ConstructorInfo findConstructorInfo(ClassInfo classInfo, String[] paramTypes) throws JoinpointException
classInfo
- the class infoparamTypes
- the parameter types
JoinpointException
- when no such constructorpublic static FieldInfo findFieldInfo(ClassInfo classInfo, String name) throws JoinpointException
classInfo
- the class infoname
- the field name
JoinpointException
- when no such fieldpublic static MethodInfo findMethodInfo(ClassInfo classInfo, String name, String[] paramTypes) throws JoinpointException
classInfo
- the class infoname
- the method nameparamTypes
- the parameter types
JoinpointException
- when no such methodpublic static boolean equals(String[] typeNames, TypeInfo[] typeInfos)
typeNames
- the type namestypeInfos
- the type infos
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |