org.apache.maven.settings.building
Class DefaultSettingsBuilder

java.lang.Object
  extended by org.apache.maven.settings.building.DefaultSettingsBuilder
All Implemented Interfaces:
SettingsBuilder

@Component(role=SettingsBuilder.class)
public class DefaultSettingsBuilder
extends Object
implements SettingsBuilder

Builds the effective settings from a user settings file and/or a global settings file.

Author:
Benjamin Bentmann

Constructor Summary
DefaultSettingsBuilder()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSettingsBuilder

public DefaultSettingsBuilder()
Method Detail

setSettingsReader

public DefaultSettingsBuilder setSettingsReader(SettingsReader settingsReader)

setSettingsWriter

public DefaultSettingsBuilder setSettingsWriter(SettingsWriter settingsWriter)

setSettingsValidator

public DefaultSettingsBuilder setSettingsValidator(SettingsValidator settingsValidator)

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 interface SettingsBuilder
Parameters:
request - The settings building request that holds the parameters, must not be null.
Returns:
The result of the settings building, never null.
Throws:
SettingsBuildingException - If the effective settings could not be built.


Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.