Package org.codehaus.jackson.map.ser
Class AnyGetterWriter
- java.lang.Object
-
- org.codehaus.jackson.map.ser.AnyGetterWriter
-
public class AnyGetterWriter extends java.lang.Object
Class similar toBeanPropertyWriter
, but that will be used for serializingJsonAnyGetter
annotated (Map) properties- Since:
- 1.6
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.reflect.Method
_anyGetter
protected MapSerializer
_serializer
-
Constructor Summary
Constructors Constructor Description AnyGetterWriter(AnnotatedMethod anyGetter, MapSerializer serializer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
getAndSerialize(java.lang.Object bean, JsonGenerator jgen, SerializerProvider provider)
void
resolve(SerializerProvider provider)
-
-
-
Field Detail
-
_anyGetter
protected final java.lang.reflect.Method _anyGetter
-
_serializer
protected final MapSerializer _serializer
-
-
Constructor Detail
-
AnyGetterWriter
public AnyGetterWriter(AnnotatedMethod anyGetter, MapSerializer serializer)
-
-
Method Detail
-
getAndSerialize
public void getAndSerialize(java.lang.Object bean, JsonGenerator jgen, SerializerProvider provider) throws java.lang.Exception
- Throws:
java.lang.Exception
-
resolve
public void resolve(SerializerProvider provider) throws JsonMappingException
- Throws:
JsonMappingException
-
-