Spring for Apache Hadoop

org.springframework.yarn.integration.convert
Class MindHolderToObjectConverter

java.lang.Object
  extended by org.springframework.yarn.integration.convert.MindHolderToObjectConverter
All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<MindRpcMessageHolder,BaseObject>

public class MindHolderToObjectConverter
extends java.lang.Object
implements org.springframework.core.convert.converter.Converter<MindRpcMessageHolder,BaseObject>

Spring Converter which knows how to convert MindRpcMessageHolder to BaseObject.

Author:
Janne Valkealahti

Constructor Summary
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.
 
Method Summary
 BaseObject convert(MindRpcMessageHolder source)
           
 void setBasePackage(java.lang.String[] basePackage)
          Sets the base packages.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MindHolderToObjectConverter

public MindHolderToObjectConverter(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Instantiates a new mind holder to object converter.

Parameters:
objectMapper - the object mapper

MindHolderToObjectConverter

public MindHolderToObjectConverter(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
                                   java.lang.String basePackage)
Instantiates a new mind holder to object converter.

Parameters:
objectMapper - the object mapper
basePackage - the base package

MindHolderToObjectConverter

public MindHolderToObjectConverter(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
                                   java.lang.String[] basePackage)
Instantiates a new mind holder to object converter.

Parameters:
objectMapper - the object mapper
basePackage - the array of base packages
Method Detail

convert

public BaseObject convert(MindRpcMessageHolder source)
Specified by:
convert in interface org.springframework.core.convert.converter.Converter<MindRpcMessageHolder,BaseObject>

setBasePackage

public void setBasePackage(java.lang.String[] basePackage)
Sets the base packages.

Parameters:
basePackage - the new array base packages

Spring for Apache Hadoop