public class ContextMapAttributeConverter extends Object implements AttributeConverter<Map<String,String>,String>
Map<String, String>
s in
LogEvent
s. This converter is only capable of converting to String
s. The
convertToEntityAttribute(String)
method throws an UnsupportedOperationException
. If you need to
support converting to an entity attribute, you should use the ContextMapJsonAttributeConverter
for conversion
both ways.Constructor and Description |
---|
ContextMapAttributeConverter() |
Modifier and Type | Method and Description |
---|---|
String |
convertToDatabaseColumn(Map<String,String> contextMap) |
Map<String,String> |
convertToEntityAttribute(String s) |
public ContextMapAttributeConverter()
public String convertToDatabaseColumn(Map<String,String> contextMap)
convertToDatabaseColumn
in interface AttributeConverter<Map<String,String>,String>
public Map<String,String> convertToEntityAttribute(String s)
convertToEntityAttribute
in interface AttributeConverter<Map<String,String>,String>
Copyright © 1999-2021 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.