Class TypeConverters.StringConverter

java.lang.Object
org.apache.logging.log4j.core.config.plugins.convert.TypeConverters.StringConverter
All Implemented Interfaces:
TypeConverter<String>
Enclosing class:
TypeConverters

@Plugin(name="String", category="TypeConverter") public static class TypeConverters.StringConverter extends Object implements TypeConverter<String>
Returns the given String, no conversion takes place.
  • Constructor Details

    • StringConverter

      public StringConverter()
  • Method Details

    • convert

      public String convert(String s)
      Description copied from interface: TypeConverter
      Converts a String to a given type.
      Specified by:
      convert in interface TypeConverter<String>
      Parameters:
      s - the String to convert. Cannot be null.
      Returns:
      the converted object.