org.apache.maven.settings.building
Class DefaultSettingsBuilderFactory

java.lang.Object
  extended by org.apache.maven.settings.building.DefaultSettingsBuilderFactory

public class DefaultSettingsBuilderFactory
extends Object

A factory to create settings builder instances when no dependency injection is available. Note: This class is only meant as a utility for developers that want to employ the settings builder outside of the Maven build system, Maven plugins should always acquire settings builder instances via dependency injection. Developers might want to subclass this factory to provide custom implementations for some of the components used by the settings builder.

Author:
Benjamin Bentmann

Constructor Summary
DefaultSettingsBuilderFactory()
           
 
Method Summary
 DefaultSettingsBuilder newInstance()
          Creates a new settings builder instance.
protected  SettingsReader newSettingsReader()
           
protected  SettingsValidator newSettingsValidator()
           
protected  SettingsWriter newSettingsWriter()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSettingsBuilderFactory

public DefaultSettingsBuilderFactory()
Method Detail

newSettingsReader

protected SettingsReader newSettingsReader()

newSettingsWriter

protected SettingsWriter newSettingsWriter()

newSettingsValidator

protected SettingsValidator newSettingsValidator()

newInstance

public DefaultSettingsBuilder newInstance()
Creates a new settings builder instance.

Returns:
The new settings builder instance, never null.


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