Class DefaultSettingsBuilder
java.lang.Object
org.apache.maven.settings.building.DefaultSettingsBuilder
- All Implemented Interfaces:
SettingsBuilder
Builds the effective settings from a user settings file and/or a global settings file.
- Author:
- Benjamin Bentmann
-
Constructor Summary
ConstructorDescriptionDefaultSettingsBuilder
(SettingsReader settingsReader, SettingsWriter settingsWriter, SettingsValidator settingsValidator) -
Method Summary
Modifier and TypeMethodDescriptionbuild
(SettingsBuildingRequest request) Builds the effective settings of the specified settings files.setSettingsReader
(SettingsReader settingsReader) setSettingsValidator
(SettingsValidator settingsValidator) setSettingsWriter
(SettingsWriter settingsWriter)
-
Constructor Details
-
DefaultSettingsBuilder
@Inject public DefaultSettingsBuilder(SettingsReader settingsReader, SettingsWriter settingsWriter, SettingsValidator settingsValidator)
-
-
Method Details
-
setSettingsReader
-
setSettingsWriter
-
setSettingsValidator
-
build
public SettingsBuildingResult build(SettingsBuildingRequest request) throws SettingsBuildingException Description copied from interface:SettingsBuilder
Builds the effective settings of the specified settings files.- Specified by:
build
in interfaceSettingsBuilder
- Parameters:
request
- The settings building request that holds the parameters, must not benull
.- Returns:
- The result of the settings building, never
null
. - Throws:
SettingsBuildingException
- If the effective settings could not be built.
-