Spring AMQP

org.springframework.amqp.support.converter
Class DefaultClassMapper

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

public class DefaultClassMapper
extends Object
implements ClassMapper, InitializingBean

Author:
Mark Pollack

Field Summary
static String DEFAULT_CLASSID_FIELD_NAME
           
 
Constructor Summary
DefaultClassMapper()
           
 
Method Summary
 void afterPropertiesSet()
           
 void fromClass(Class<?> clazz, MessageProperties properties)
           
 String getClassIdFieldName()
           
 void setDefaultHashtableClass(Class<?> defaultHashtableClass)
           
 void setIdClassMapping(Map<String,Class<?>> idClassMapping)
           
 Class<?> toClass(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
Constructor Detail

DefaultClassMapper

public DefaultClassMapper()
Method Detail

setDefaultHashtableClass

public void setDefaultHashtableClass(Class<?> defaultHashtableClass)

getClassIdFieldName

public String getClassIdFieldName()

setIdClassMapping

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

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 © 2011. All Rights Reserved.