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

Type Parameters:
T - the type of entity bean

public interface JsonWriteBeanVisitor<T>

Allows for customising the JSON write processing.

You can use this to add raw JSON content via JsonWriter.

You register a JsonWriteBeanVisitor with JsonWriteOptions.

Author:
rbygrave
See Also:
JsonWriteOptions

Method Summary
 void visit(T bean, JsonWriter jsonWriter)
          Visit the bean that has just been writing it's content to JSON.
 

Method Detail

visit

void visit(T bean,
           JsonWriter jsonWriter)
Visit the bean that has just been writing it's content to JSON. You can write your own additional JSON content to the JsonWriter if you wish.

Parameters:
bean - the bean that has been writing it's content
jsonWriter - the JsonWriter which you can append custom json content to if you wish.


Copyright © 2010. All Rights Reserved.