Spring AMQP

org.springframework.amqp.support.converter
Class DefaultJavaTypeMapper

java.lang.Object
  extended by org.springframework.amqp.support.converter.DefaultJavaTypeMapper
All Implemented Interfaces:
ClassMapper, JavaTypeMapper, InitializingBean

public class DefaultJavaTypeMapper
extends Object
implements JavaTypeMapper, ClassMapper, InitializingBean


Field Summary
static String DEFAULT_CLASSID_FIELD_NAME
           
static String DEFAULT_CONTENT_CLASSID_FIELD_NAME
           
static String DEFAULT_KEY_CLASSID_FIELD_NAME
           
 
Constructor Summary
DefaultJavaTypeMapper()
           
 
Method Summary
 void afterPropertiesSet()
           
 void fromClass(Class<?> clazz, MessageProperties properties)
           
 void fromJavaType(org.codehaus.jackson.type.JavaType javaType, MessageProperties properties)
           
 String getClassIdFieldName()
           
 String getContentClassIdFieldName()
           
 String getKeyClassIdFieldName()
           
 void setIdClassMapping(Map<String,Class<?>> idClassMapping)
           
 Class<?> toClass(MessageProperties properties)
           
 org.codehaus.jackson.type.JavaType toJavaType(MessageProperties properties)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CLASSID_FIELD_NAME

public static final String DEFAULT_CLASSID_FIELD_NAME
See Also:
Constant Field Values

DEFAULT_CONTENT_CLASSID_FIELD_NAME

public static final String DEFAULT_CONTENT_CLASSID_FIELD_NAME
See Also:
Constant Field Values

DEFAULT_KEY_CLASSID_FIELD_NAME

public static final String DEFAULT_KEY_CLASSID_FIELD_NAME
See Also:
Constant Field Values
Constructor Detail

DefaultJavaTypeMapper

public DefaultJavaTypeMapper()
Method Detail

getClassIdFieldName

public String getClassIdFieldName()

getContentClassIdFieldName

public String getContentClassIdFieldName()

getKeyClassIdFieldName

public String getKeyClassIdFieldName()

toJavaType

public org.codehaus.jackson.type.JavaType toJavaType(MessageProperties properties)
Specified by:
toJavaType in interface JavaTypeMapper

setIdClassMapping

public void setIdClassMapping(Map<String,Class<?>> idClassMapping)

fromJavaType

public void fromJavaType(org.codehaus.jackson.type.JavaType javaType,
                         MessageProperties properties)
Specified by:
fromJavaType in interface JavaTypeMapper

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface InitializingBean
Throws:
Exception

fromClass

public void fromClass(Class<?> clazz,
                      MessageProperties properties)
Specified by:
fromClass in interface ClassMapper

toClass

public Class<?> toClass(MessageProperties properties)
Specified by:
toClass in interface ClassMapper

Spring AMQP

Copyright © 2012. All Rights Reserved.