Package org.apache.maven.configuration
Class DefaultBeanConfigurationRequest
java.lang.Object
org.apache.maven.configuration.DefaultBeanConfigurationRequest
- All Implemented Interfaces:
- BeanConfigurationRequest
A basic bean configuration request.
- Author:
- Benjamin Bentmann
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetBean()Gets the bean to configure.Gets the class loader from which to load any types referenced by the configuration.Gets the configuration to unmarshal into the bean.Returns configuration element name ornull.Gets the optional path translator for configuration values unmarshalled to files.Gets the optional preprocessor for configuration values.Sets the bean to configure.setClassLoader(ClassLoader classLoader) Sets the class loader from which to load any types referenced by the configuration.setConfiguration(Object configuration) Sets the configuration to unmarshal into the bean.setConfiguration(Object configuration, String element) Sets the configuration to unmarshal into the bean.setConfiguration(Model model, String pluginGroupId, String pluginArtifactId, String pluginExecutionId) Sets the configuration to the configuration taken from the specified build plugin in the POM.setPathTranslator(BeanConfigurationPathTranslator pathTranslator) Sets the optional path translator for configuration values unmarshalled to files.setValuePreprocessor(BeanConfigurationValuePreprocessor valuePreprocessor) Sets the optional preprocessor for configuration values.
- 
Constructor Details- 
DefaultBeanConfigurationRequestpublic DefaultBeanConfigurationRequest()
 
- 
- 
Method Details- 
getBeanDescription copied from interface:BeanConfigurationRequestGets the bean to configure. Eventually, a valid request must have a bean set.- Specified by:
- getBeanin interface- BeanConfigurationRequest
- Returns:
- The bean to configure, or nullif none.
 
- 
setBeanDescription copied from interface:BeanConfigurationRequestSets the bean to configure. Eventually, a valid request must have a bean set.- Specified by:
- setBeanin interface- BeanConfigurationRequest
- Parameters:
- bean- The bean to configure, may be- null.
- Returns:
- This request for chaining, never null.
 
- 
getConfigurationDescription copied from interface:BeanConfigurationRequestGets the configuration to unmarshal into the bean.- Specified by:
- getConfigurationin interface- BeanConfigurationRequest
- Returns:
- The configuration to unmarshal into the bean or nullif none.
 
- 
getConfigurationElementDescription copied from interface:BeanConfigurationRequestReturns configuration element name ornull.- Specified by:
- getConfigurationElementin interface- BeanConfigurationRequest
- Returns:
- Configuration element name or null
- See Also:
 
- 
setConfigurationDescription copied from interface:BeanConfigurationRequestSets the configuration to unmarshal into the bean. The configuration should be taken fromConfigurationContainer.getConfiguration()or a similar source. Fully equivalent tosetConfiguration(configuration, null).- Specified by:
- setConfigurationin interface- BeanConfigurationRequest
- Parameters:
- configuration- The configuration to unmarshal, may be- null.
- Returns:
- This request for chaining, never null.
 
- 
setConfigurationDescription copied from interface:BeanConfigurationRequestSets the configuration to unmarshal into the bean. The configuration should be taken fromConfigurationContainer.getConfiguration()or a similar source. Ifelementis notnull, child configuration element with the specified name will be unmarshaled.- Specified by:
- setConfigurationin interface- BeanConfigurationRequest
- Parameters:
- configuration- The configuration to unmarshal, may be- null.
- element- Configuration element name to unmarshal or- nullto unmarshal entire configuration.
- Returns:
- This request for chaining, never null.
 
- 
setConfigurationpublic 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. First, the build plugins will be searched for the specified plugin, if that fails, the plugin management section will be searched.- Parameters:
- 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- nullor empty.
- pluginArtifactId- The artifact id of the plugin whose configuration should be used, must not be- nullor empty.
- pluginExecutionId- The id of a plugin execution whose configuration should be used, may be- nullor empty to use the general plugin configuration.
- Returns:
- This request for chaining, never null.
 
- 
getClassLoaderDescription copied from interface:BeanConfigurationRequestGets the class loader from which to load any types referenced by the configuration. If unset, the class loader of the bean class will be used.- Specified by:
- getClassLoaderin interface- BeanConfigurationRequest
- Returns:
- The class loader to load referenced types from or nullif unset.
 
- 
setClassLoaderDescription copied from interface:BeanConfigurationRequestSets the class loader from which to load any types referenced by the configuration. If unset, the class loader of the bean class will be used.- Specified by:
- setClassLoaderin interface- BeanConfigurationRequest
- Parameters:
- classLoader- The class loader to load referenced types from, may be- null.
- Returns:
- This request for chaining, never null.
 
- 
getValuePreprocessorDescription copied from interface:BeanConfigurationRequestGets the optional preprocessor for configuration values.- Specified by:
- getValuePreprocessorin interface- BeanConfigurationRequest
- Returns:
- The preprocessor for configuration values or nullif none.
 
- 
setValuePreprocessorpublic DefaultBeanConfigurationRequest setValuePreprocessor(BeanConfigurationValuePreprocessor valuePreprocessor) Description copied from interface:BeanConfigurationRequestSets the optional preprocessor for configuration values.- Specified by:
- setValuePreprocessorin interface- BeanConfigurationRequest
- Parameters:
- valuePreprocessor- The preprocessor for configuration values, may be- nullif unneeded.
- Returns:
- This request for chaining, never null.
 
- 
getPathTranslatorDescription copied from interface:BeanConfigurationRequestGets the optional path translator for configuration values unmarshalled to files.- Specified by:
- getPathTranslatorin interface- BeanConfigurationRequest
- Returns:
- The path translator for files or nullif none.
 
- 
setPathTranslatorpublic DefaultBeanConfigurationRequest setPathTranslator(BeanConfigurationPathTranslator pathTranslator) Description copied from interface:BeanConfigurationRequestSets the optional path translator for configuration values unmarshalled to files.- Specified by:
- setPathTranslatorin interface- BeanConfigurationRequest
- Parameters:
- pathTranslator- The path translator for files, may be- nullif unneeded.
- Returns:
- This request for chaining, never null.
 
 
-