org.codehaus.jackson.map.ser
Class ReadOnlyClassToSerializerMap

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

public final class ReadOnlyClassToSerializerMap
extends java.lang.Object

Optimized lookup table for accessing JsonSerializer instances keyed by Class. Initially this just uses a regular HashMap, could optimize later on if need be


Method Summary
static ReadOnlyClassToSerializerMap from(java.util.HashMap<ClassKey,JsonSerializer<java.lang.Object>> src)
          Factory method for creating the "blueprint" lookup map.
 JsonSerializer<java.lang.Object> get(java.lang.Class<?> clz)
           
 ReadOnlyClassToSerializerMap instance()
           
 
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(java.util.HashMap<ClassKey,JsonSerializer<java.lang.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.


get

public JsonSerializer<java.lang.Object> get(java.lang.Class<?> clz)