public class MindHolderToObjectConverter extends java.lang.Object implements org.springframework.core.convert.converter.Converter<MindRpcMessageHolder,BaseObject>
Constructor and Description |
---|
MindHolderToObjectConverter(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Instantiates a new mind holder to object converter.
|
MindHolderToObjectConverter(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
java.lang.String basePackage)
Instantiates a new mind holder to object converter.
|
MindHolderToObjectConverter(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
java.lang.String[] basePackage)
Instantiates a new mind holder to object converter.
|
Modifier and Type | Method and Description |
---|---|
BaseObject |
convert(MindRpcMessageHolder source) |
void |
setBasePackage(java.lang.String[] basePackage)
Sets the base packages.
|
public MindHolderToObjectConverter(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
objectMapper
- the object mapperpublic MindHolderToObjectConverter(com.fasterxml.jackson.databind.ObjectMapper objectMapper, java.lang.String basePackage)
objectMapper
- the object mapperbasePackage
- the base packagepublic MindHolderToObjectConverter(com.fasterxml.jackson.databind.ObjectMapper objectMapper, java.lang.String[] basePackage)
objectMapper
- the object mapperbasePackage
- the array of base packagespublic BaseObject convert(MindRpcMessageHolder source)
convert
in interface org.springframework.core.convert.converter.Converter<MindRpcMessageHolder,BaseObject>
public void setBasePackage(java.lang.String[] basePackage)
basePackage
- the new array base packages