Ejemplo n.º 1
0
 public PropertyValueBuffer startBuilding(
     JsonParser jp, DeserializationContext ctxt, ObjectIdReader oir) {
   PropertyValueBuffer buffer = new PropertyValueBuffer(jp, ctxt, this._propertyCount, oir);
   if (this._propertiesWithInjectables != null) {
     buffer.inject(this._propertiesWithInjectables);
   }
   return buffer;
 }
Ejemplo n.º 2
0
 public Object build(DeserializationContext ctxt, PropertyValueBuffer buffer) throws IOException {
   Object bean =
       buffer.handleIdValue(
           ctxt,
           this._valueInstantiator.createFromObjectWith(
               ctxt, buffer.getParameters(this._defaultValues)));
   for (PropertyValue pv = buffer.buffered(); pv != null; pv = pv.next) {
     pv.assign(bean);
   }
   return bean;
 }