Package io.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
.- See Also:
JsonWriteOptions
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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 contentjsonWriter
- the JsonWriter which you can append custom json content to if you wish.
-
-