Search in sources :

Example 1 with EmailNotifierEngine

use of fr.inria.spirals.repairnator.notifier.engines.EmailNotifierEngine in project repairnator by Spirals-Team.

the class LauncherUtils method initNotifierEngines.

public static List<NotifierEngine> initNotifierEngines(Logger logger) {
    List<NotifierEngine> notifierEngines = new ArrayList<>();
    RepairnatorConfig config = RepairnatorConfig.getInstance();
    if (config.getSmtpServer() != null && config.getNotifyTo() != null) {
        logger.info("The email notifier engine will be used.");
        notifierEngines.add(new EmailNotifierEngine(config.getNotifyTo(), config.getSmtpServer()));
    } else {
        logger.info("The email notifier engine won't be used.");
    }
    return notifierEngines;
}
Also used : NotifierEngine(fr.inria.spirals.repairnator.notifier.engines.NotifierEngine) EmailNotifierEngine(fr.inria.spirals.repairnator.notifier.engines.EmailNotifierEngine) RepairnatorConfig(fr.inria.spirals.repairnator.config.RepairnatorConfig) ArrayList(java.util.ArrayList) EmailNotifierEngine(fr.inria.spirals.repairnator.notifier.engines.EmailNotifierEngine)

Aggregations

RepairnatorConfig (fr.inria.spirals.repairnator.config.RepairnatorConfig)1 EmailNotifierEngine (fr.inria.spirals.repairnator.notifier.engines.EmailNotifierEngine)1 NotifierEngine (fr.inria.spirals.repairnator.notifier.engines.NotifierEngine)1 ArrayList (java.util.ArrayList)1