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 Summary
-
Method Summary
-
Constructor Details
-
StringConverter
public StringConverter()
-
-
Method Details
-
convert
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.
-