org.codehaus.jackson.map.ser
Class AnyGetterWriter

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

public class AnyGetterWriter
extends Object

Class similar to BeanPropertyWriter, but that will be used for serializing JsonAnyGetter annotated (Map) properties

Since:
1.6

Field Summary
protected  Method _anyGetter
           
protected  MapSerializer _serializer
           
 
Constructor Summary
AnyGetterWriter(AnnotatedMethod anyGetter, MapSerializer serializer)
           
 
Method Summary
 void getAndSerialize(Object bean, JsonGenerator jgen, SerializerProvider provider)
           
 void resolve(SerializerProvider provider)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_anyGetter

protected final Method _anyGetter

_serializer

protected final MapSerializer _serializer
Constructor Detail

AnyGetterWriter

public AnyGetterWriter(AnnotatedMethod anyGetter,
                       MapSerializer serializer)
Method Detail

getAndSerialize

public void getAndSerialize(Object bean,
                            JsonGenerator jgen,
                            SerializerProvider provider)
                     throws Exception
Throws:
Exception

resolve

public void resolve(SerializerProvider provider)
             throws JsonMappingException
Throws:
JsonMappingException