package org.itevents.scheduler;

import org.itevents.model.Event;
import org.itevents.model.User;
import org.itevents.service.SendGridService;
import org.itevents.service.UserEventService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler;
import org.springframework.scheduling.config.ScheduledTaskRegistrar;
import org.springframework.scheduling.config.Task;
import org.springframework.scheduling.support.CronSequenceGenerator;
import org.springframework.scheduling.support.CronTrigger;

import java.util.List;
import java.util.Map;

/**
 * Created by ramax on 7/30/15.
 */
public class SchedulerMailing {

    @Scheduled(cron = "${cron.start_sending}")
    public void startSending(){
        System.out.println("Send emails");
        //TODO Call the service method to send to user mail
    }

}

@@ -41,642 +41,55 @@
 org.
-itevents.model.Event;%0Aimport org.itevents.model.User;%0Aimport org.itevents.service.SendGridService;%0Aimport org.itevents.service.UserEventService;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.scheduling.annotation.Scheduled;%0Aimport org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler;%0Aimport org.springframework.scheduling.config.ScheduledTaskRegistrar;%0Aimport org.springframework.scheduling.config.Task;%0Aimport org.springframework.scheduling.support.CronSequenceGenerator;%0Aimport org.springframework.scheduling.support.CronTrigger;%0A%0Aimport java.util.List;%0Aimport java.util.Map
+springframework.scheduling.annotation.Scheduled
 ;%0A%0A/

change bug