org.codehaus.jackson.map.ser
Class ReadOnlyClassToSerializerMap

java.lang.Object
  extended by org.codehaus.jackson.map.ser.ReadOnlyClassToSerializerMap

public final class ReadOnlyClassToSerializerMap
extends Object

Optimized lookup table for accessing two types of serializers; typed and non-typed.


Method Summary
static ReadOnlyClassToSerializerMap from(HashMap<Object,JsonSerializer<Object>> src)
          Factory method for creating the "blueprint" lookup map.
 ReadOnlyClassToSerializerMap instance()
           
 JsonSerializer<Object> typedValueSerializer(Class<?> cls)
           
 JsonSerializer<Object> typedValueSerializer(JavaType type)
           
 JsonSerializer<Object> untypedValueSerializer(Class<?> cls)
           
 JsonSerializer<Object> untypedValueSerializer(JavaType type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

instance

public ReadOnlyClassToSerializerMap instance()

from

public static ReadOnlyClassToSerializerMap from(HashMap<Object,JsonSerializer<Object>> src)
Factory method for creating the "blueprint" lookup map. Such map can not be used as is but just shared: to get an actual usable instance, instance() has to be called first.


typedValueSerializer

public JsonSerializer<Object> typedValueSerializer(JavaType type)

typedValueSerializer

public JsonSerializer<Object> typedValueSerializer(Class<?> cls)

untypedValueSerializer

public JsonSerializer<Object> untypedValueSerializer(Class<?> cls)

untypedValueSerializer

public JsonSerializer<Object> untypedValueSerializer(JavaType type)
Since:
1.5