Class TypeConverters.PathConverter
- java.lang.Object
-
- org.apache.logging.log4j.core.config.plugins.convert.TypeConverters.PathConverter
-
- All Implemented Interfaces:
TypeConverter<Path>
- Enclosing class:
- TypeConverters
@Plugin(name="Path", category="TypeConverter") public static class TypeConverters.PathConverter extends Object implements TypeConverter<Path>
- Since:
- 2.8
-
-
Constructor Summary
Constructors Constructor Description PathConverter()
-
-
-
Method Detail
-
convert
public Path convert(String s) throws Exception
Description copied from interface:TypeConverter
Converts a String to a given type.- Specified by:
convert
in interfaceTypeConverter<Path>
- Parameters:
s
- the String to convert. Cannot benull
.- Returns:
- the converted object.
- Throws:
Exception
- thrown when a conversion error occurs
-
-