Class JsonValueSerializer

All Implemented Interfaces:
ResolvableSerializer, SchemaAware

public class JsonValueSerializer extends SerializerBase<Object> implements ResolvableSerializer, SchemaAware
Serializer class that can serialize Object that have a JsonValue annotation to indicate that serialization should be done by calling the method annotated, and serializing result it returns.

Implementation note: we will post-process resulting serializer (much like what is done with BeanSerializer) to figure out actual serializers for final types. This must be done from resolve(org.codehaus.jackson.map.SerializerProvider) method, and NOT from constructor; otherwise we could end up with an infinite loop.