public class MongoDbMessageBytesConverter extends Object implements GenericConverter
GenericConverter
implementation to convert Message
to
serialized byte[]
to store Message
to the MongoDB.
And vice versa - to convert byte[]
from the MongoDB to the Message
.GenericConverter.ConvertiblePair
Constructor and Description |
---|
MongoDbMessageBytesConverter() |
Modifier and Type | Method and Description |
---|---|
void |
addWhiteListPatterns(String... patterns)
Add patterns for packages/classes that are allowed to be deserialized.
|
Object |
convert(Object source,
TypeDescriptor sourceType,
TypeDescriptor targetType) |
Set<GenericConverter.ConvertiblePair> |
getConvertibleTypes() |
public Set<GenericConverter.ConvertiblePair> getConvertibleTypes()
getConvertibleTypes
in interface GenericConverter
public Object convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType)
convert
in interface GenericConverter
public void addWhiteListPatterns(String... patterns)
com.foo.*
, *.MyClass
.patterns
- the patterns.