org.codehaus.jackson.map
Class SerializerFactory

java.lang.Object
  extended by org.codehaus.jackson.map.SerializerFactory
Direct Known Subclasses:
BasicSerializerFactory

public abstract class SerializerFactory
extends Object

Abstract class that defines API used by SerializerProvider to obtain actual JsonSerializer instances from multiple distinct factories.


Constructor Summary
SerializerFactory()
           
 
Method Summary
abstract
<T> JsonSerializer<T>
createSerializer(Class<T> type, SerializationConfig config)
          Method called to create (or, for completely immutable serializers, reuse) a serializer for given type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerializerFactory

public SerializerFactory()
Method Detail

createSerializer

public abstract <T> JsonSerializer<T> createSerializer(Class<T> type,
                                                       SerializationConfig config)
Method called to create (or, for completely immutable serializers, reuse) a serializer for given type.

Parameters:
type - Type to be serialized
config - Generic serialization configuration