public interface BeanConfigurationRequest
Modifier and Type | Method and Description |
---|---|
Object |
getBean()
Gets the bean to configure.
|
ClassLoader |
getClassLoader()
Gets the class loader from which to load any types referenced by the configuration.
|
Object |
getConfiguration()
Gets the configuration to unmarshal into the bean.
|
String |
getConfigurationElement()
Returns configuration element name or
null . |
BeanConfigurationPathTranslator |
getPathTranslator()
Gets the optional path translator for configuration values unmarshalled to files.
|
BeanConfigurationValuePreprocessor |
getValuePreprocessor()
Gets the optional preprocessor for configuration values.
|
BeanConfigurationRequest |
setBean(Object bean)
Sets the bean to configure.
|
BeanConfigurationRequest |
setClassLoader(ClassLoader classLoader)
Sets the class loader from which to load any types referenced by the configuration.
|
BeanConfigurationRequest |
setConfiguration(Object configuration)
Sets the configuration to unmarshal into the bean.
|
BeanConfigurationRequest |
setConfiguration(Object configuration,
String element)
Sets the configuration to unmarshal into the bean.
|
BeanConfigurationRequest |
setPathTranslator(BeanConfigurationPathTranslator pathTranslator)
Sets the optional path translator for configuration values unmarshalled to files.
|
BeanConfigurationRequest |
setValuePreprocessor(BeanConfigurationValuePreprocessor valuePreprocessor)
Sets the optional preprocessor for configuration values.
|
Object getBean()
null
if none.BeanConfigurationRequest setBean(Object bean)
bean
- The bean to configure, may be null
.null
.Object getConfiguration()
null
if none.BeanConfigurationRequest setConfiguration(Object configuration)
ConfigurationContainer.getConfiguration()
or a similar source.
Fully equivalent to setConfiguration(configuration, null)
.configuration
- The configuration to unmarshal, may be null
.null
.BeanConfigurationRequest setConfiguration(Object configuration, String element)
ConfigurationContainer.getConfiguration()
or a similar source.
If element
is not null
, child configuration element with the specified name will
be unmarshaled.configuration
- The configuration to unmarshal, may be null
.element
- Configuration element name to unmarshal or null
to unmarshal entire configuration.null
.String getConfigurationElement()
null
.null
setConfiguration(Object, String)
ClassLoader getClassLoader()
null
if unset.BeanConfigurationRequest setClassLoader(ClassLoader classLoader)
classLoader
- The class loader to load referenced types from, may be null
.null
.BeanConfigurationValuePreprocessor getValuePreprocessor()
null
if none.BeanConfigurationRequest setValuePreprocessor(BeanConfigurationValuePreprocessor valuePreprocessor)
valuePreprocessor
- The preprocessor for configuration values, may be null
if unneeded.null
.BeanConfigurationPathTranslator getPathTranslator()
null
if none.BeanConfigurationRequest setPathTranslator(BeanConfigurationPathTranslator pathTranslator)
pathTranslator
- The path translator for files, may be null
if unneeded.null
.Copyright © 2001–2023 The Apache Software Foundation. All rights reserved.