Interface Listener


public interface Listener
Listener interface provides some events fired by Importer.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Invoked when bean failed managed
    void
    Invoked when line is imported
    void
    imported(Integer total, Integer success)
    Invoked when file is imported
  • Method Details

    • imported

      void imported(Model bean)
      Invoked when line is imported
      Parameters:
      bean - the bean instance mapped to the imported values
    • imported

      void imported(Integer total, Integer success)
      Invoked when file is imported
      Parameters:
      total - the total number of records processed
      success - the total number of records successfuly imported
    • handle

      void handle(Model bean, Exception e)
      Invoked when bean failed managed
      Parameters:
      bean - the bean for which import failed
      e - the cause