|
||||||||||
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(String className,
Properties properties)
Creates a bean configuration. |
Method Summary | |
---|---|
ClassLoader |
getClassLoader()
Returns the current ClassLoader used to instantiate objects
in the newInstance() method. |
String |
getClassName()
Returns the class name of the configured bean. |
static ClassLoader |
getDefaultClassLoader()
Returns the current ClassLoader used for new instances of
this class as the loader used to instantiate objects in the
newInstance() method. |
Properties |
getParameters()
Returns the initial properties of the configured bean. |
Object |
newInstance()
Creates a new instance of the configured bean class. |
void |
setClassLoader(ClassLoader classLoader)
Sets the ClassLoader used to instantiate objects in the
newInstance() method. |
static void |
setDefaultClassLoader(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(String className, Properties properties)
className
- class name of the beanproperties
- initial properties of the beanpublic BeanConfig(BeanConfig config)
config
- the configuration to be copiedMethod Detail |
---|
protected void setValidate(boolean validate)
validate
- flag to validate the configured property namespublic String getClassName()
public Properties getParameters()
public Object newInstance() throws ConfigurationException
ConfigurationException
- on bean configuration errorspublic ClassLoader getClassLoader()
ClassLoader
used to instantiate objects
in the newInstance()
method.
newInstance()
,
setClassLoader(ClassLoader)
,
getDefaultClassLoader()
,
setDefaultClassLoader(ClassLoader)
public void setClassLoader(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 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(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 |