|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.joinpoint.plugins.config.Config
org.jboss.kernel.plugins.config.Configurator
public class Configurator
Configuration utilities.
Field Summary |
---|
Fields inherited from class org.jboss.joinpoint.plugins.config.Config |
---|
log |
Constructor Summary | |
---|---|
Configurator()
|
Method Summary | |
---|---|
static void |
configure(boolean trace,
Object object,
BeanInfo info,
ClassLoader cl,
PropertyMetaData metaData)
Configure a bean property |
static void |
configure(boolean trace,
Object object,
PropertyInfo info,
ClassLoader cl,
PropertyMetaData metaData)
Configure a bean property |
static void |
configure(Object object,
BeanInfo info,
BeanMetaData metaData)
Configure a bean |
static void |
configure(Object object,
BeanInfo info,
ClassLoader cl,
PropertyMetaData metaData)
Configure a bean property |
static void |
configure(Object object,
PropertyInfo info,
ClassLoader cl,
PropertyMetaData metaData)
Configure a bean property |
static ConstructorJoinpoint |
findConstructor(boolean trace,
BeanInfo info,
ConstructorMetaData metaData,
BeanMetaData beanMetaData)
Find a constructor |
static MethodJoinpoint |
findMethod(BeanInfo info,
ClassLoader cl,
String name,
List parameters,
boolean isStatic,
boolean isPublic)
Find a method |
static MethodJoinpoint |
findMethod(boolean trace,
BeanInfo info,
ClassLoader cl,
String name,
List parameters,
boolean isStatic,
boolean isPublic)
Find a method |
static ClassLoader |
getClassLoader(BeanMetaData metaData)
Get the classloader for some BeanMetaData |
static ClassLoader |
getClassLoader(ClassLoaderMetaData metaData)
Get the classloader for some ClassLoaderMetaData |
static Joinpoint |
getConstructorJoinPoint(KernelConfig config,
BeanInfo info,
ConstructorMetaData metaData,
BeanMetaData beanMetaData)
Get a constructor joinpoint |
static Object[] |
getParameters(boolean trace,
ClassLoader cl,
TypeInfo[] pinfos,
List parameters)
Get the parameters |
static String[] |
getParameterTypes(boolean trace,
List parameters)
Get the parameters types |
static String[] |
getParameterTypes(boolean trace,
TypeInfo[] parameters)
Get the parameters types |
static TargettedJoinpoint |
getPropertyGetterJoinPoint(BeanInfo info,
String property)
Get property getter for an property |
static TargettedJoinpoint |
getPropertyGetterJoinPoint(boolean trace,
PropertyInfo info)
Get an property getter joinpoint |
static TargettedJoinpoint |
getPropertyNullerJoinPoint(BeanInfo info,
PropertyMetaData metaData)
Get property nuller joinpoint for a property |
static TargettedJoinpoint |
getPropertyNullerJoinPoint(PropertyInfo info,
PropertyMetaData metaData)
Get property nuller joinpoint for a property |
static Set |
getPropertyNullerJoinPoints(BeanInfo info,
BeanMetaData metaData)
Get property nuller joinpoints for a bean |
static TargettedJoinpoint |
getPropertySetterJoinPoint(BeanInfo info,
ClassLoader cl,
PropertyMetaData metaData)
Get property setter for an property |
static TargettedJoinpoint |
getPropertySetterJoinPoint(BeanInfo info,
String property,
ClassLoader cl,
ValueMetaData vmd)
Get property setter for an property |
static TargettedJoinpoint |
getPropertySetterJoinPoint(boolean trace,
BeanInfo info,
ClassLoader cl,
PropertyMetaData metaData)
Get property setter for an property |
static TargettedJoinpoint |
getPropertySetterJoinPoint(boolean trace,
PropertyInfo info,
ClassLoader cl,
ValueMetaData metaData)
Get an property setter joinpoint |
static TargettedJoinpoint |
getPropertySetterJoinPoint(PropertyInfo info,
ClassLoader cl,
PropertyMetaData metaData)
Get property setter for an property |
static Set |
getPropertySetterJoinPoints(BeanInfo info,
BeanMetaData metaData)
Get the property setters for a bean |
static Object |
instantiate(KernelConfig config,
BeanInfo info,
BeanMetaData metaData)
Instantiate a bean |
static Object |
instantiateAndConfigure(KernelConfig config,
BeanInfo info,
BeanMetaData metaData)
Instantiate and configure a bean |
static ConstructorInfo |
resolveConstructor(boolean trace,
BeanInfo info,
ConstructorMetaData metaData)
Resolve a constructor |
static PropertyInfo |
resolveProperty(boolean trace,
BeanInfo info,
String name)
Get the property info |
static void |
unconfigure(boolean trace,
Object object,
PropertyInfo info,
PropertyMetaData metaData)
UnConfigure a bean property |
static void |
unconfigure(Object object,
BeanInfo info,
BeanMetaData metaData)
Unconfigure a bean |
static void |
unconfigure(Object object,
BeanInfo info,
PropertyMetaData metaData)
Unconfigure a bean property |
Methods inherited from class org.jboss.joinpoint.plugins.config.Config |
---|
configure, equals, findConstructorInfo, findFieldInfo, findMethodInfo, getConstructorJoinpoint, getConstructorJoinpoint, getFieldGetJoinpoint, getFieldSetJoinpoint, getMethodJoinpoint, instantiate, invoke, unconfigure |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Configurator()
Method Detail |
---|
public static Object instantiateAndConfigure(KernelConfig config, BeanInfo info, BeanMetaData metaData) throws Throwable
info
- the bean infometaData
- the bean metadata
Throwable
- for any errorpublic static Object instantiate(KernelConfig config, BeanInfo info, BeanMetaData metaData) throws Throwable
config
- the kernel configinfo
- the bean infometaData
- the bean metadata
Throwable
- for any errorpublic static Joinpoint getConstructorJoinPoint(KernelConfig config, BeanInfo info, ConstructorMetaData metaData, BeanMetaData beanMetaData) throws Throwable
config
- the kernel configinfo
- the bean infometaData
- the constructor metadatabeanMetaData
-
Throwable
- for any errorpublic static ConstructorJoinpoint findConstructor(boolean trace, BeanInfo info, ConstructorMetaData metaData, BeanMetaData beanMetaData) throws Exception
trace
- whether trace is enabledinfo
- the bean infometaData
- the constructor metadatabeanMetaData
-
Exception
- for any errorpublic static ConstructorInfo resolveConstructor(boolean trace, BeanInfo info, ConstructorMetaData metaData)
trace
- whether trace is enabledinfo
- the bean infometaData
- the constructor metadata
public static void configure(Object object, BeanInfo info, BeanMetaData metaData) throws Throwable
object
- the object to configureinfo
- the bean infometaData
- the bean metadata
Throwable
- for any errorpublic static void configure(Object object, BeanInfo info, ClassLoader cl, PropertyMetaData metaData) throws Throwable
object
- the object to configureinfo
- the bean infocl
- the classloadermetaData
- the property metadata
Throwable
- for any errorpublic static void configure(boolean trace, Object object, BeanInfo info, ClassLoader cl, PropertyMetaData metaData) throws Throwable
trace
- whether trace is enabledobject
- the object to configureinfo
- the bean infocl
- the classloadermetaData
- the property metadata
Throwable
- for any errorpublic static void configure(Object object, PropertyInfo info, ClassLoader cl, PropertyMetaData metaData) throws Throwable
object
- the object to configureinfo
- the property infocl
- the classloadermetaData
- the property metadata
Throwable
- for any errorpublic static void configure(boolean trace, Object object, PropertyInfo info, ClassLoader cl, PropertyMetaData metaData) throws Throwable
trace
- whether trace is enabledobject
- the object to configureinfo
- the property infocl
- the classloadermetaData
- the property metadata
Throwable
- for any errorpublic static TargettedJoinpoint getPropertyGetterJoinPoint(BeanInfo info, String property) throws Throwable
info
- the bean infoproperty
- the property name
Throwable
- for any errorpublic static TargettedJoinpoint getPropertyGetterJoinPoint(boolean trace, PropertyInfo info) throws Throwable
trace
- whether trace is enabledinfo
- the property info
Throwable
- for any errorpublic static Set getPropertySetterJoinPoints(BeanInfo info, BeanMetaData metaData) throws Throwable
info
- the bean infometaData
- the bean metadata
Throwable
- for any errorpublic static TargettedJoinpoint getPropertySetterJoinPoint(BeanInfo info, ClassLoader cl, PropertyMetaData metaData) throws Throwable
info
- the bean infocl
- the classloadermetaData
- the property metadata
Throwable
- for any errorpublic static TargettedJoinpoint getPropertySetterJoinPoint(boolean trace, BeanInfo info, ClassLoader cl, PropertyMetaData metaData) throws Throwable
trace
- whether trace is enabledinfo
- the bean infocl
- the classloadermetaData
- the property metadata
Throwable
- for any errorpublic static TargettedJoinpoint getPropertySetterJoinPoint(PropertyInfo info, ClassLoader cl, PropertyMetaData metaData) throws Throwable
info
- the property infocl
- the classloadermetaData
- the property metadata
Throwable
- for any errorpublic static TargettedJoinpoint getPropertySetterJoinPoint(BeanInfo info, String property, ClassLoader cl, ValueMetaData vmd) throws Throwable
info
- the bean infoproperty
- the property namecl
- the classloadervmd
- the value meta data
Throwable
- for any errorpublic static TargettedJoinpoint getPropertySetterJoinPoint(boolean trace, PropertyInfo info, ClassLoader cl, ValueMetaData metaData) throws Throwable
trace
- whether trace is enabledinfo
- the property infocl
- the classloadermetaData
- the value metadata
Throwable
- for any errorpublic static void unconfigure(Object object, BeanInfo info, BeanMetaData metaData) throws Throwable
object
- the object to unconfigureinfo
- the bean infometaData
- the bean metadata
Throwable
- for any errorpublic static void unconfigure(Object object, BeanInfo info, PropertyMetaData metaData) throws Throwable
object
- the object to unconfigureinfo
- the bean infometaData
- the property metadata
Throwable
- for any errorpublic static void unconfigure(boolean trace, Object object, PropertyInfo info, PropertyMetaData metaData) throws Throwable
trace
- whether trace is enabledobject
- the object to configureinfo
- the property infometaData
- the property metadata
Throwable
- for any errorpublic static Set getPropertyNullerJoinPoints(BeanInfo info, BeanMetaData metaData) throws Throwable
info
- the bean infometaData
- the bean metadata
Throwable
- for any errorpublic static TargettedJoinpoint getPropertyNullerJoinPoint(BeanInfo info, PropertyMetaData metaData) throws Throwable
info
- the bean infometaData
- the property metadata
Throwable
- for any errorpublic static TargettedJoinpoint getPropertyNullerJoinPoint(PropertyInfo info, PropertyMetaData metaData) throws Throwable
info
- the property infometaData
- the property metadata
Throwable
- for any errorpublic static PropertyInfo resolveProperty(boolean trace, BeanInfo info, String name) throws Throwable
trace
- whether trace is enabledinfo
- the bean infoname
- the property name
Throwable
- for any errorpublic static MethodJoinpoint findMethod(BeanInfo info, ClassLoader cl, String name, List parameters, boolean isStatic, boolean isPublic) throws Throwable
info
- the bean infocl
- the classloadername
- the method nameparameters
- the parameter metadataisStatic
- whether the method is staticisPublic
- whether the method is public
Throwable
- for any errorpublic static MethodJoinpoint findMethod(boolean trace, BeanInfo info, ClassLoader cl, String name, List parameters, boolean isStatic, boolean isPublic) throws Throwable
trace
- whether trace is enabledinfo
- the bean infocl
- the classloadername
- the method nameparameters
- the parameter metadataisStatic
- whether the method is staticisPublic
- whether the method is public
Throwable
- for any errorpublic static String[] getParameterTypes(boolean trace, List parameters) throws Throwable
trace
- whether trace is enabledparameters
- the parameter metadata
Throwable
- for any errorpublic static String[] getParameterTypes(boolean trace, TypeInfo[] parameters) throws Throwable
trace
- whether trace is enabledparameters
- the parameter types
Throwable
- for any errorpublic static Object[] getParameters(boolean trace, ClassLoader cl, TypeInfo[] pinfos, List parameters) throws Throwable
trace
- whether trace is enabledcl
- the classloaderpinfos
- the parameter infosparameters
- the parameter metadata
Throwable
- for any errorpublic static ClassLoader getClassLoader(BeanMetaData metaData) throws Throwable
metaData
- the metaData
Throwable
- for any errorpublic static ClassLoader getClassLoader(ClassLoaderMetaData metaData) throws Throwable
metaData
- the metaData
Throwable
- for any error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |