Class StringSettingsSource

  • All Implemented Interfaces:
    org.apache.maven.building.Source, SettingsSource

    @Deprecated
    public class StringSettingsSource
    extends org.apache.maven.building.StringSource
    implements SettingsSource
    Deprecated.
    instead use StringSource
    Wraps an ordinary CharSequence as a settings source.
    Author:
    Benjamin Bentmann
    • Constructor Summary

      Constructors 
      Constructor Description
      StringSettingsSource​(java.lang.CharSequence settings)
      Deprecated.
      Creates a new settings source backed by the specified string.
      StringSettingsSource​(java.lang.CharSequence settings, java.lang.String location)
      Deprecated.
      Creates a new settings source backed by the specified string.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      java.lang.String getSettings()
      Deprecated.
      instead use StringSource.getContent()
      • Methods inherited from class org.apache.maven.building.StringSource

        getContent, getInputStream, getLocation, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.apache.maven.building.Source

        getInputStream, getLocation
    • Constructor Detail

      • StringSettingsSource

        public StringSettingsSource​(java.lang.CharSequence settings)
        Deprecated.
        Creates a new settings source backed by the specified string.
        Parameters:
        settings - The settings' string representation, may be empty or null.
      • StringSettingsSource

        public StringSettingsSource​(java.lang.CharSequence settings,
                                    java.lang.String location)
        Deprecated.
        Creates a new settings source backed by the specified string.
        Parameters:
        settings - The settings' string representation, may be empty or null.
        location - The location to report for this use, may be null.
    • Method Detail

      • getSettings

        @Deprecated
        public java.lang.String getSettings()
        Deprecated.
        instead use StringSource.getContent()
        Gets the character sequence of this settings source.
        Returns:
        The underlying character stream, never null.