// /META-INF/services/org.socialmusicdiscovery.server.api.mediaimport.MediaImporter
Map<String, MediaImporter> mediaImporters = new HashMap<String,MediaImporter>();
ServiceLoader<MediaImporter> mediaImporterLoader = ServiceLoader.load(MediaImporter.class);
Iterator<MediaImporter> mediaImporterIterator = mediaImporterLoader.iterator();
while(mediaImporterIterator.hasNext()) {
MediaImporter importer = mediaImporterIterator.next();
mediaImporters.put(importer.getId(),importer);
}
// Load all registered post processor modules registered in:
// /META-INF/services/org.socialmusicdiscovery.server.api.mediaimport.PostProcessor
Map<String, PostProcessor> postProcessors = new HashMap<String,PostProcessor>();