Class StdSerializerProvider

java.lang.Object
org.codehaus.jackson.map.SerializerProvider
org.codehaus.jackson.map.ser.StdSerializerProvider

public class StdSerializerProvider extends SerializerProvider
Default SerializerProvider implementation. Handles caching aspects of serializer handling; all construction details are delegated to SerializerFactory instance.

One note about implementation: the main instance constructed will be so-called "blueprint" object, and will NOT be used during actual serialization. Rather, an "instance" instance is created so that state can be carried along, as well as to avoid synchronization during serializer access. Because of this, if sub-classing, one must override method createInstance(org.codehaus.jackson.map.SerializationConfig, org.codehaus.jackson.map.SerializerFactory): if this is not done, an exception will get thrown as base class verifies that the instance has same class as the blueprint (instance.getClass() == blueprint.getClass()). Check is done to prevent weird bugs that would otherwise occur.

Starting with version 1.5, provider is also responsible for some parts of type serialization; specifically for locating proper type serializers to use for types.