|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.joinpoint.plugins.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 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 |
| 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 error
public 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 error
public 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 error
public 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 error
public static ConstructorJoinpoint getConstructorJoinpoint(JoinpointFactory jpf)
throws Throwable
jpf - the join point factory
Throwable - for any error
public static ConstructorJoinpoint getConstructorJoinpoint(JoinpointFactory jpf,
String[] paramTypes,
Object[] params)
throws Throwable
jpf - the join point factoryparamTypes - the parameter typesparams - the parameters
Throwable - for any error
public 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 error
public 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 error
public 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 error
public 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 parameters
Throwable - for any error
public static ConstructorInfo findConstructorInfo(ClassInfo classInfo,
String[] paramTypes)
throws JoinpointException
classInfo - the class infoparamTypes - the parameter types
JoinpointException - when no such constructor
public static FieldInfo findFieldInfo(ClassInfo classInfo,
String name)
throws JoinpointException
classInfo - the class infoname - the field name
JoinpointException - when no such field
public 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 method
public 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 modifiers
JoinpointException - when no such method
public 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 public
JoinpointException - when no such method
public 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 modifiers
JoinpointException - when no such method
public static boolean equals(String[] typeNames,
TypeInfo[] typeInfos)
typeNames - the type namestypeInfos - the type infos
protected static boolean simpleCheck(String[] typeNames,
TypeInfo[] typeInfos)
typeNames - typeInfos -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||