|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.configuration.DefaultBeanConfigurationRequest
public class DefaultBeanConfigurationRequest
A basic bean configuration request.
Constructor Summary | |
---|---|
DefaultBeanConfigurationRequest()
|
Method Summary | |
---|---|
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. |
BeanConfigurationPathTranslator |
getPathTranslator()
Gets the optional path translator for configuration values unmarshalled to files. |
BeanConfigurationValuePreprocessor |
getValuePreprocessor()
Gets the optional preprocessor for configuration values. |
DefaultBeanConfigurationRequest |
setBean(Object bean)
Sets the bean to configure. |
DefaultBeanConfigurationRequest |
setClassLoader(ClassLoader classLoader)
Sets the class loader from which to load any types referenced by the configuration. |
DefaultBeanConfigurationRequest |
setConfiguration(Model model,
String pluginGroupId,
String pluginArtifactId,
String pluginExecutionId)
Sets the configuration to the configuration taken from the specified build plugin in the POM. |
DefaultBeanConfigurationRequest |
setConfiguration(Object configuration)
Sets the configuration to unmarshal into the bean. |
DefaultBeanConfigurationRequest |
setPathTranslator(BeanConfigurationPathTranslator pathTranslator)
Sets the optional path translator for configuration values unmarshalled to files. |
DefaultBeanConfigurationRequest |
setValuePreprocessor(BeanConfigurationValuePreprocessor valuePreprocessor)
Sets the optional preprocessor for configuration values. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultBeanConfigurationRequest()
Method Detail |
---|
public Object getBean()
BeanConfigurationRequest
getBean
in interface BeanConfigurationRequest
null
if none.public DefaultBeanConfigurationRequest setBean(Object bean)
BeanConfigurationRequest
setBean
in interface BeanConfigurationRequest
bean
- The bean to configure, may be null
.
null
.public Object getConfiguration()
BeanConfigurationRequest
getConfiguration
in interface BeanConfigurationRequest
null
if none.public DefaultBeanConfigurationRequest setConfiguration(Object configuration)
BeanConfigurationRequest
ConfigurationContainer.getConfiguration()
or a similar source.
setConfiguration
in interface BeanConfigurationRequest
configuration
- The configuration to unmarshal, may be null
.
null
.public DefaultBeanConfigurationRequest setConfiguration(Model model, String pluginGroupId, String pluginArtifactId, String pluginExecutionId)
model
- The POM to extract the plugin configuration from, may be null
.pluginGroupId
- The group id of the plugin whose configuration should be used, must not be null
or
empty.pluginArtifactId
- The artifact id of the plugin whose configuration should be used, must not be
null
or empty.pluginExecutionId
- The id of a plugin execution whose configuration should be used, may be null
or
empty to use the general plugin configuration.
null
.public ClassLoader getClassLoader()
BeanConfigurationRequest
getClassLoader
in interface BeanConfigurationRequest
null
if unset.public DefaultBeanConfigurationRequest setClassLoader(ClassLoader classLoader)
BeanConfigurationRequest
setClassLoader
in interface BeanConfigurationRequest
classLoader
- The class loader to load referenced types from, may be null
.
null
.public BeanConfigurationValuePreprocessor getValuePreprocessor()
BeanConfigurationRequest
getValuePreprocessor
in interface BeanConfigurationRequest
null
if none.public DefaultBeanConfigurationRequest setValuePreprocessor(BeanConfigurationValuePreprocessor valuePreprocessor)
BeanConfigurationRequest
setValuePreprocessor
in interface BeanConfigurationRequest
valuePreprocessor
- The preprocessor for configuration values, may be null
if unneeded.
null
.public BeanConfigurationPathTranslator getPathTranslator()
BeanConfigurationRequest
getPathTranslator
in interface BeanConfigurationRequest
null
if none.public DefaultBeanConfigurationRequest setPathTranslator(BeanConfigurationPathTranslator pathTranslator)
BeanConfigurationRequest
setPathTranslator
in interface BeanConfigurationRequest
pathTranslator
- The path translator for files, may be null
if unneeded.
null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |