com.avaje.ebean.text.json
Interface JsonReadBeanVisitor<T>

Type Parameters:
T - The type of entity bean

public interface JsonReadBeanVisitor<T>

Provides for some custom handling of json content as it is read.

This visit method is called after all the known properties of the bean have been processed. Any JSON elements that could not be mapped to known bean properties are available in the unmapped Map.

Author:
rbygrave

Method Summary
 void visit(T bean, Map<String,JsonElement> unmapped)
          Visit the bean that has just been processed.
 

Method Detail

visit

void visit(T bean,
           Map<String,JsonElement> unmapped)
Visit the bean that has just been processed.

This provides a method of customising the bean and processing any custom JSON content.

Parameters:
bean - the bean being processed
unmapped - Map of any JSON elements that didn't map to known bean properties


Copyright © 2010. All Rights Reserved.