Module io.ebean.api

Interface JsonReadBeanVisitor<T>

Type Parameters:
T - The type of entity bean

public interface JsonReadBeanVisitor<T>
Provides for 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.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    visit(T bean, Map<String,Object> unmapped)
    Visit the bean that has just been processed.
  • Method Details

    • visit

      void visit(T bean, Map<String,Object> 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