Class TypeConverters.PatternConverter

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

@Plugin(name="Pattern", category="TypeConverter") public static class TypeConverters.PatternConverter extends Object implements TypeConverter<Pattern>
Converts a String into a Pattern.
  • Constructor Details

    • PatternConverter

      public PatternConverter()
  • Method Details

    • convert

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