|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.config.BeanConfig
public class BeanConfig
Bean configuration class. BeanConfig instances contain the class name and property information required to instantiate a class that conforms with the JavaBean conventions.
| Constructor Summary | |
|---|---|
BeanConfig(BeanConfig config)
Copies a bean configuration. |
|
BeanConfig(java.lang.String className,
java.util.Properties properties)
Creates a bean configuration. |
|
| Method Summary | |
|---|---|
java.lang.ClassLoader |
getClassLoader()
Returns the current ClassLoader used to instantiate objects
in the newInstance() method. |
java.lang.String |
getClassName()
Returns the class name of the configured bean. |
static java.lang.ClassLoader |
getDefaultClassLoader()
Returns the current ClassLoader used for new instances of
this class as the loader used to instantiate objects in the
newInstance() method. |
java.util.Properties |
getParameters()
Returns the initial properties of the configured bean. |
java.lang.Object |
newInstance()
Creates a new instance of the configured bean class. |
void |
setClassLoader(java.lang.ClassLoader classLoader)
Sets the ClassLoader used to instantiate objects in the
newInstance() method. |
static void |
setDefaultClassLoader(java.lang.ClassLoader classLoader)
Sets the ClassLoader used for new instances of this class as
the loader to instantiate objects in the newInstance() method. |
protected void |
setValidate(boolean validate)
Allows subclasses to control whether the configured bean property names should be validated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BeanConfig(java.lang.String className,
java.util.Properties properties)
className - class name of the beanproperties - initial properties of the beanpublic BeanConfig(BeanConfig config)
config - the configuration to be copied| Method Detail |
|---|
protected void setValidate(boolean validate)
validate - flag to validate the configured property namespublic java.lang.String getClassName()
public java.util.Properties getParameters()
public java.lang.Object newInstance()
throws ConfigurationException
ConfigurationException - on bean configuration errorspublic java.lang.ClassLoader getClassLoader()
ClassLoader used to instantiate objects
in the newInstance() method.
newInstance(),
setClassLoader(ClassLoader),
getDefaultClassLoader(),
setDefaultClassLoader(ClassLoader)public void setClassLoader(java.lang.ClassLoader classLoader)
ClassLoader used to instantiate objects in the
newInstance() method.
classLoader - The class loader to set on this instance. If this is
null the system class loader will be used, which may
lead to unexpected class loading failures.newInstance(),
getClassLoader(),
getDefaultClassLoader(),
setDefaultClassLoader(ClassLoader)public static java.lang.ClassLoader getDefaultClassLoader()
ClassLoader used for new instances of
this class as the loader used to instantiate objects in the
newInstance() method.
newInstance(),
getClassLoader(),
setClassLoader(ClassLoader),
setDefaultClassLoader(ClassLoader)public static void setDefaultClassLoader(java.lang.ClassLoader classLoader)
ClassLoader used for new instances of this class as
the loader to instantiate objects in the newInstance() method.
classLoader - The class loader to set as the default class loader.
If this is null the system class loader will be used,
which may lead to unexpected class loading failures.newInstance(),
getClassLoader(),
setClassLoader(ClassLoader),
getDefaultClassLoader()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||