org.loom.converter
Class JsonConverterFactory

java.lang.Object
  extended by org.loom.converter.JsonConverterFactory
All Implemented Interfaces:
AnnotationDrivenConverterFactory<JSON>

@Singleton
public class JsonConverterFactory
extends java.lang.Object
implements AnnotationDrivenConverterFactory<JSON>


Constructor Summary
JsonConverterFactory()
           
 
Method Summary
 java.lang.Class<JSON> getAnnotationClass()
           
 Converter getConverter(AnnotationContainer container, JSON annotation)
           
 void setObjectMapper(org.codehaus.jackson.map.ObjectMapper objectMapper)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonConverterFactory

public JsonConverterFactory()
Method Detail

getAnnotationClass

public java.lang.Class<JSON> getAnnotationClass()
Specified by:
getAnnotationClass in interface AnnotationDrivenConverterFactory<JSON>
Returns:
the annotation class processed by this factory

getConverter

public Converter getConverter(AnnotationContainer container,
                              JSON annotation)
Specified by:
getConverter in interface AnnotationDrivenConverterFactory<JSON>
annotation - the annotation that was found on this property
Returns:
The converter for this property.

setObjectMapper

public void setObjectMapper(org.codehaus.jackson.map.ObjectMapper objectMapper)