public class AnyGetterWriter extends Object
BeanPropertyWriter
, but that will be used
for serializing JsonAnyGetter
annotated
(Map) properties限定符和类型 | 字段和说明 |
---|---|
protected Method |
_anyGetter |
protected MapSerializer |
_serializer |
构造器和说明 |
---|
AnyGetterWriter(AnnotatedMethod anyGetter,
MapSerializer serializer) |
限定符和类型 | 方法和说明 |
---|---|
void |
getAndSerialize(Object bean,
JsonGenerator jgen,
SerializerProvider provider) |
void |
resolve(SerializerProvider provider) |
protected final Method _anyGetter
protected final MapSerializer _serializer
public AnyGetterWriter(AnnotatedMethod anyGetter, MapSerializer serializer)
public void getAndSerialize(Object bean, JsonGenerator jgen, SerializerProvider provider) throws Exception
Exception
public void resolve(SerializerProvider provider) throws JsonMappingException