Package hu.lacimol.tutorial.todo.service

Examples of hu.lacimol.tutorial.todo.service.TodoService.create()


    final TodoMonitor monitor = (TodoMonitor) jobDataMap.get("TodoMonitorImpl:instance");
    final TodoService service = (TodoService) jobDataMap.get("TodoService");
   
    DateTime now = DateTime.now();
    SimpleDateFormat fmt = GlobalSettings.createHunDateFormatter();
    service.create("TodoTask description " + fmt.format(now.toDate()));
    monitor.setLastRun(now.toDate());
    monitor.setNextRun(now.plus(monitor.getInterval()).toDate());
    logger.info("TodoTask executed at " + fmt.format(monitor.getLastRun()) + " and will execute at "
        + fmt.format(monitor.getNextRun()));
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.