package de.predic8;

import de.predic8.quartz.DailyMail;
import de.predic8.quartz.Verify;
import de.predic8.routes.ArchiverRoutes;
import org.apache.camel.main.Main;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class Archive {

    private Main main;

    public static void main(String[] args) throws Exception {
        SpringApplication.run(Archive.class, args);
        Archive archive = new Archive();
        archive.boot();
    }

    private void boot() throws Exception {
        main = new Main();
        main.addRouteBuilder(new ArchiverRoutes());
        main.addRouteBuilder(new DailyMail());
        main.addRouteBuilder(new Verify());
        System.out.println("Starting... Use CTRL + C to terminate!");
        main.run();
    }
}

@@ -18,118 +18,8 @@
 8;%0A%0A
-import de.predic8.quartz.DailyMail;%0Aimport de.predic8.quartz.Verify;%0Aimport de.predic8.routes.ArchiverRoutes;%0A
 impo
@@ -497,32 +497,34 @@
 Main();%0A        
+//
 main.addRouteBui
@@ -551,32 +551,34 @@
 tes());%0A        
+//
 main.addRouteBui
@@ -604,24 +604,26 @@
 ));%0A        
+//
 main.addRout

add routes via component