// Path: opentipbot-jobs/src/main/java/opentipbot/jobs/configuration/JobsConfig.java
// @Configuration
// @EnableScheduling
// @ComponentScan(basePackages = {
//         "opentipbot.service"
// })
// @Import({PersistenceContext.class, ServiceSocialConfig.class})
// @PropertySource("classpath:application.properties")
// public class JobsConfig {
// 
//     @Autowired
//     OpenTipBotService opentipbotService;
// 
//     @Autowired
//     private Environment env;
// 
//     @Bean
//     public OpenTipBotHandleNewTweetsTask opentipbotTask(){
//         return new OpenTipBotHandleNewTweetsTask(opentipbotService);
//     }
// 
//     @Bean
//     public OpenTipBotProcessCommandsTask opentipbotProcessCommandsTask(){
//         return new OpenTipBotProcessCommandsTask(opentipbotService);
//     }
// 
// }


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import opentipbot.jobs.configuration.JobsConfig;
package opentipbot.jobs;


/**
 * @author Gilles Cadignan
 * Job runner class. Main method to be executed in the packaged jar.
 */
public class JobsRunner {
    private static final Logger log = LoggerFactory.getLogger(JobsRunner.class.getSimpleName());

    public static void main(String[] args) {
        log.info("Starting jobs application context");
// Path: opentipbot-jobs/src/main/java/opentipbot/jobs/configuration/JobsConfig.java
// @Configuration
// @EnableScheduling
// @ComponentScan(basePackages = {
//         "opentipbot.service"
// })
// @Import({PersistenceContext.class, ServiceSocialConfig.class})
// @PropertySource("classpath:application.properties")
// public class JobsConfig {
// 
//     @Autowired
//     OpenTipBotService opentipbotService;
// 
//     @Autowired
//     private Environment env;
// 
//     @Bean
//     public OpenTipBotHandleNewTweetsTask opentipbotTask(){
//         return new OpenTipBotHandleNewTweetsTask(opentipbotService);
//     }
// 
//     @Bean
//     public OpenTipBotProcessCommandsTask opentipbotProcessCommandsTask(){
//         return new OpenTipBotProcessCommandsTask(opentipbotService);
//     }
// 
// }


// Path: opentipbot-jobs/src/main/java/opentipbot/jobs/JobsRunner.java
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import opentipbot.jobs.configuration.JobsConfig;

package opentipbot.jobs;


/**
 * @author Gilles Cadignan
 * Job runner class. Main method to be executed in the packaged jar.
 */
public class JobsRunner {
    private static final Logger log = LoggerFactory.getLogger(JobsRunner.class.getSimpleName());

    public static void main(String[] args) {
        log.info("Starting jobs application context");
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(JobsConfig.class);