Interfaces for creating new data importers.

Create a new Importer

  1. Create a new module and set ImportAPI as a dependency.
  2. Create a new class that implements the particular type of importers you need:
  3. Add @ServiceProvider annotation to your class to declare you are implementing an Importer service. Put FileFormatImporter.class as the annotation service parameter for text and XML, StreamImporter.class for Streams and DatabaseImporter.class for Databases.

To let your export task be cancelled and its progress watched, implement LongTask interface.

Note that Importers are singleton, it's preferable to always instantiate an inner class importer when importData() is called.