ExportAPI
as a dependency.TextGraphFileExporter
or XMLGraphFileExporter
.GraphFileExporter.class
as the annotation service parameter.To let your export task be cancelled and its progress watched, implement
LongTask
interface.
Note that Exporters are singleton, it's preferable to always instantiate
an inner class exporter when exportData()
is called.