Class DefaultSettingsBuilderFactory

java.lang.Object
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.
  • Constructor Details

    • DefaultSettingsBuilderFactory

      public DefaultSettingsBuilderFactory()
  • Method Details

    • 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.