@Named @Singleton public class DefaultSettingsBuilder extends Object implements SettingsBuilder
Constructor and Description |
---|
DefaultSettingsBuilder(SettingsReader settingsReader,
SettingsWriter settingsWriter,
SettingsValidator settingsValidator) |
Modifier and Type | Method and Description |
---|---|
SettingsBuildingResult |
build(SettingsBuildingRequest request)
Builds the effective settings of the specified settings files.
|
DefaultSettingsBuilder |
setSettingsReader(SettingsReader settingsReader) |
DefaultSettingsBuilder |
setSettingsValidator(SettingsValidator settingsValidator) |
DefaultSettingsBuilder |
setSettingsWriter(SettingsWriter settingsWriter) |
@Inject public DefaultSettingsBuilder(SettingsReader settingsReader, SettingsWriter settingsWriter, SettingsValidator settingsValidator)
public DefaultSettingsBuilder setSettingsReader(SettingsReader settingsReader)
public DefaultSettingsBuilder setSettingsWriter(SettingsWriter settingsWriter)
public DefaultSettingsBuilder setSettingsValidator(SettingsValidator settingsValidator)
public SettingsBuildingResult build(SettingsBuildingRequest request) throws SettingsBuildingException
SettingsBuilder
build
in interface SettingsBuilder
request
- The settings building request that holds the parameters, must not be null
.null
.SettingsBuildingException
- If the effective settings could not be built.Copyright © 2001–2019 The Apache Software Foundation. All rights reserved.