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 givenString
, no conversion takes place.
-
-
Constructor Summary
Constructors Constructor Description StringConverter()
-
-
-
Method Detail
-
convert
public String convert(String s)
Description copied from interface:TypeConverter
Converts a String to a given type.- Specified by:
convert
in interfaceTypeConverter<String>
- Parameters:
s
- the String to convert. Cannot benull
.- Returns:
- the converted object.
-
-