Module io.ebean.api

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:
  • Method Summary

    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 Details

    • 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.