public class MongoDbMessageBytesConverter extends Object implements org.springframework.core.convert.converter.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
.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,
org.springframework.core.convert.TypeDescriptor sourceType,
org.springframework.core.convert.TypeDescriptor targetType) |
Set<org.springframework.core.convert.converter.GenericConverter.ConvertiblePair> |
getConvertibleTypes() |
public Set<org.springframework.core.convert.converter.GenericConverter.ConvertiblePair> getConvertibleTypes()
getConvertibleTypes
in interface org.springframework.core.convert.converter.GenericConverter
public Object convert(Object source, org.springframework.core.convert.TypeDescriptor sourceType, org.springframework.core.convert.TypeDescriptor targetType)
convert
in interface org.springframework.core.convert.converter.GenericConverter
public void addWhiteListPatterns(String... patterns)
com.foo.*
, *.MyClass
.patterns
- the patterns.