|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.joinpoint.plugins.Config
org.jboss.kernel.plugins.config.Configurator
public class Configurator
Configuration utilities.
| Field Summary |
|---|
| Fields inherited from class org.jboss.joinpoint.plugins.Config |
|---|
log |
| Constructor Summary | |
|---|---|
Configurator()
|
|
| Method Summary | |
|---|---|
static void |
configure(boolean trace,
Object object,
org.jboss.beans.info.spi.BeanInfo info,
ClassLoader cl,
PropertyMetaData metaData)
Configure a bean property |
static void |
configure(boolean trace,
Object object,
org.jboss.beans.info.spi.PropertyInfo info,
ClassLoader cl,
PropertyMetaData metaData)
Configure a bean property |
static void |
configure(Object object,
org.jboss.beans.info.spi.BeanInfo info,
BeanMetaData metaData)
Configure a bean |
static void |
configure(Object object,
org.jboss.beans.info.spi.BeanInfo info,
ClassLoader cl,
PropertyMetaData metaData)
Configure a bean property |
static void |
configure(Object object,
org.jboss.beans.info.spi.PropertyInfo info,
ClassLoader cl,
PropertyMetaData metaData)
Configure a bean property |
static org.jboss.joinpoint.spi.ConstructorJoinpoint |
findConstructor(boolean trace,
org.jboss.beans.info.spi.BeanInfo info,
BeanMetaData metaData)
Find a constructor |
static org.jboss.joinpoint.spi.ConstructorJoinpoint |
findConstructor(boolean trace,
org.jboss.beans.info.spi.BeanInfo info,
ConstructorMetaData metaData)
Find a constructor |
static org.jboss.joinpoint.spi.ConstructorJoinpoint |
findConstructor(boolean trace,
org.jboss.beans.info.spi.BeanInfo info,
ConstructorMetaData metaData,
Object object)
Find a constructor |
static org.jboss.joinpoint.spi.MethodJoinpoint |
findMethod(org.jboss.beans.info.spi.BeanInfo info,
ClassLoader cl,
String name,
List<ParameterMetaData> parameters,
boolean isStatic,
boolean isPublic)
Find a method |
static org.jboss.joinpoint.spi.MethodJoinpoint |
findMethod(boolean trace,
org.jboss.beans.info.spi.BeanInfo info,
ClassLoader cl,
String name,
List<ParameterMetaData> 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 org.jboss.joinpoint.spi.Joinpoint |
getConstructorJoinPoint(KernelConfig config,
org.jboss.beans.info.spi.BeanInfo info,
ConstructorMetaData metaData,
BeanMetaData beanMetaData)
Get a constructor joinpoint |
static org.jboss.joinpoint.spi.Joinpoint |
getConstructorJoinPoint(KernelConfig config,
org.jboss.beans.info.spi.BeanInfo info,
ConstructorMetaData metaData,
BeanMetaData beanMetaData,
Object object)
Get a constructor joinpoint |
static Object[] |
getParameters(boolean trace,
ClassLoader cl,
org.jboss.reflect.spi.TypeInfo[] pinfos,
List<ParameterMetaData> parameters)
Get the parameters |
static String[] |
getParameterTypes(boolean trace,
List<ParameterMetaData> parameters)
Get the parameters types |
static String[] |
getParameterTypes(boolean trace,
org.jboss.reflect.spi.TypeInfo[] parameters)
Get the parameters types |
static Object |
instantiate(KernelConfig config,
org.jboss.beans.info.spi.BeanInfo info,
BeanMetaData metaData)
Instantiate a bean |
static Object |
instantiateAndConfigure(KernelConfig config,
org.jboss.beans.info.spi.BeanInfo info,
BeanMetaData metaData)
Instantiate and configure a bean |
static boolean |
isAssignable(org.jboss.reflect.spi.TypeInfoFactory tif,
ClassLoader cl,
String[] typeNames,
org.jboss.reflect.spi.TypeInfo[] typeInfos)
Test whether type names can be assigned to type infos |
static org.jboss.reflect.spi.ConstructorInfo |
resolveConstructor(boolean trace,
org.jboss.beans.info.spi.BeanInfo info,
ConstructorMetaData metaData)
Resolve a constructor |
static org.jboss.beans.info.spi.PropertyInfo |
resolveProperty(boolean trace,
org.jboss.beans.info.spi.BeanInfo info,
ClassLoader cl,
String name,
String type)
Get the property info |
static org.jboss.beans.info.spi.PropertyInfo |
resolveProperty(boolean trace,
org.jboss.beans.info.spi.BeanInfo info,
String name)
Get the property info |
static void |
unconfigure(boolean trace,
Object object,
org.jboss.beans.info.spi.PropertyInfo info,
PropertyMetaData metaData)
UnConfigure a bean property |
static void |
unconfigure(Object object,
org.jboss.beans.info.spi.BeanInfo info,
BeanMetaData metaData)
Unconfigure a bean |
static void |
unconfigure(Object object,
ClassLoader cl,
org.jboss.beans.info.spi.BeanInfo info,
PropertyMetaData metaData)
Unconfigure a bean property |
| Methods inherited from class org.jboss.joinpoint.plugins.Config |
|---|
configure, equals, findConstructorInfo, findFieldInfo, findMethodInfo, findMethodInfo, findMethodInfo, findMethodInfo, getConstructorJoinpoint, getConstructorJoinpoint, getFieldGetJoinpoint, getFieldSetJoinpoint, getMethodJoinpoint, getStaticMethodJoinpoint, instantiate, invoke, simpleCheck, 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,
org.jboss.beans.info.spi.BeanInfo info,
BeanMetaData metaData)
throws Throwable
config - the confginfo - the bean infometaData - the bean metadata
Throwable - for any error
public static Object instantiate(KernelConfig config,
org.jboss.beans.info.spi.BeanInfo info,
BeanMetaData metaData)
throws Throwable
config - the kernel configinfo - the bean infometaData - the bean metadata
Throwable - for any error
public static org.jboss.joinpoint.spi.Joinpoint getConstructorJoinPoint(KernelConfig config,
org.jboss.beans.info.spi.BeanInfo info,
ConstructorMetaData metaData,
BeanMetaData beanMetaData)
throws Throwable
config - the kernel configinfo - the bean infometaData - the constructor metadatabeanMetaData - the bean metadata
Throwable - for any error
public static org.jboss.joinpoint.spi.Joinpoint getConstructorJoinPoint(KernelConfig config,
org.jboss.beans.info.spi.BeanInfo info,
ConstructorMetaData metaData,
BeanMetaData beanMetaData,
Object object)
throws Throwable
config - the kernel configinfo - the bean infometaData - the constructor metadatabeanMetaData - the bean metadataobject - an opaque object
Throwable - for any error
public static org.jboss.joinpoint.spi.ConstructorJoinpoint findConstructor(boolean trace,
org.jboss.beans.info.spi.BeanInfo info,
BeanMetaData metaData)
throws Exception
trace - whether trace is enabledinfo - the bean infometaData - the bean metadata
Exception - for any error
public static org.jboss.joinpoint.spi.ConstructorJoinpoint findConstructor(boolean trace,
org.jboss.beans.info.spi.BeanInfo info,
ConstructorMetaData metaData)
throws Exception
trace - whether trace is enabledinfo - the bean infometaData - the constructor metadata
Exception - for any error
public static org.jboss.joinpoint.spi.ConstructorJoinpoint findConstructor(boolean trace,
org.jboss.beans.info.spi.BeanInfo info,
ConstructorMetaData metaData,
Object object)
throws Exception
trace - whether trace is enabledinfo - the bean infometaData - the constructor metadataobject - an opaque object
Exception - for any error
public static org.jboss.reflect.spi.ConstructorInfo resolveConstructor(boolean trace,
org.jboss.beans.info.spi.BeanInfo info,
ConstructorMetaData metaData)
trace - whether trace is enabledinfo - the bean infometaData - the constructor metadata
public static void configure(Object object,
org.jboss.beans.info.spi.BeanInfo info,
BeanMetaData metaData)
throws Throwable
object - the object to configureinfo - the bean infometaData - the bean metadata
Throwable - for any error
public static void configure(Object object,
org.jboss.beans.info.spi.BeanInfo info,
ClassLoader cl,
PropertyMetaData metaData)
throws Throwable
object - the object to configureinfo - the bean infocl - the classloadermetaData - the property metadata
Throwable - for any error
public static void configure(boolean trace,
Object object,
org.jboss.beans.info.spi.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 error
public static void configure(Object object,
org.jboss.beans.info.spi.PropertyInfo info,
ClassLoader cl,
PropertyMetaData metaData)
throws Throwable
object - the object to configureinfo - the property infocl - the classloadermetaData - the property metadata
Throwable - for any error
public static void configure(boolean trace,
Object object,
org.jboss.beans.info.spi.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 error
public static void unconfigure(Object object,
org.jboss.beans.info.spi.BeanInfo info,
BeanMetaData metaData)
throws Throwable
object - the object to unconfigureinfo - the bean infometaData - the bean metadata
Throwable - for any error
public static void unconfigure(Object object,
ClassLoader cl,
org.jboss.beans.info.spi.BeanInfo info,
PropertyMetaData metaData)
throws Throwable
object - the object to unconfigurecl - the classloaderinfo - the bean infometaData - the property metadata
Throwable - for any error
public static void unconfigure(boolean trace,
Object object,
org.jboss.beans.info.spi.PropertyInfo info,
PropertyMetaData metaData)
throws Throwable
trace - whether trace is enabledobject - the object to configureinfo - the property infometaData - the property metadata
Throwable - for any error
public static org.jboss.beans.info.spi.PropertyInfo resolveProperty(boolean trace,
org.jboss.beans.info.spi.BeanInfo info,
String name)
throws Throwable
trace - whether trace is enabledinfo - the bean infoname - the property name
Throwable - for any error
public static org.jboss.beans.info.spi.PropertyInfo resolveProperty(boolean trace,
org.jboss.beans.info.spi.BeanInfo info,
ClassLoader cl,
String name,
String type)
throws Throwable
trace - whether trace is enabledinfo - the bean infocl - the classloadername - the property nametype - the property type
Throwable - for any error
public static org.jboss.joinpoint.spi.MethodJoinpoint findMethod(org.jboss.beans.info.spi.BeanInfo info,
ClassLoader cl,
String name,
List<ParameterMetaData> 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 error
public static org.jboss.joinpoint.spi.MethodJoinpoint findMethod(boolean trace,
org.jboss.beans.info.spi.BeanInfo info,
ClassLoader cl,
String name,
List<ParameterMetaData> 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 error
public static String[] getParameterTypes(boolean trace,
List<ParameterMetaData> parameters)
throws Throwable
trace - whether trace is enabledparameters - the parameter metadata
Throwable - for any error
public static String[] getParameterTypes(boolean trace,
org.jboss.reflect.spi.TypeInfo[] parameters)
throws Throwable
trace - whether trace is enabledparameters - the parameter types
Throwable - for any error
public static Object[] getParameters(boolean trace,
ClassLoader cl,
org.jboss.reflect.spi.TypeInfo[] pinfos,
List<ParameterMetaData> parameters)
throws Throwable
trace - whether trace is enabledcl - the classloaderpinfos - the parameter infosparameters - the parameter metadata
Throwable - for any error
public static ClassLoader getClassLoader(BeanMetaData metaData)
throws Throwable
metaData - the metaData
Throwable - for any error
public static ClassLoader getClassLoader(ClassLoaderMetaData metaData)
throws Throwable
metaData - the metaData
Throwable - for any error
public static boolean isAssignable(org.jboss.reflect.spi.TypeInfoFactory tif,
ClassLoader cl,
String[] typeNames,
org.jboss.reflect.spi.TypeInfo[] typeInfos)
throws Throwable
tif - the type info factorycl - bean classloadertypeNames - the type namestypeInfos - the type infos
Throwable - for any error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||