@Transactional private void createCharacterImporters() { Session session = database.getCurrentSession(); List<ApiKey> apiKeys = ApiKey.getAll(session); for (ApiKey apiKey : apiKeys) { addCharacterImporter(apiKey); } }
public void addCharacterImporter(ApiKey apiKey) { LOG.debug("Scheduling importers for character: " + apiKey.getCharacterName()); CharacterImporter importer = characterImporterProvider.get(); importer.scheduleApiImporters(apiKey); }