Class TypeConverters.UuidConverter

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

@Plugin(name="UUID", category="TypeConverter") public static class TypeConverters.UuidConverter extends Object implements TypeConverter<UUID>
Converts a String into a UUID.
Since:
2.8
  • Constructor Details

    • UuidConverter

      public UuidConverter()
  • Method Details

    • convert

      public UUID convert(String s) throws Exception
      Description copied from interface: TypeConverter
      Converts a String to a given type.
      Specified by:
      convert in interface TypeConverter<UUID>
      Parameters:
      s - the String to convert. Cannot be null.
      Returns:
      the converted object.
      Throws:
      Exception - thrown when a conversion error occurs