// Path: demo-service/src/main/java/app/demo/job/DemoJob.java
// public class DemoJob implements Job {
//     private final Logger logger = LoggerFactory.getLogger(DemoJob.class);
// 
//     @Override
//     public void execute(JobContext context) {
//         logger.debug("run job, name={}, time={}", context.name, context.scheduledTime);
//     }
// }


import app.demo.job.DemoJob;
import core.framework.module.Module;
import java.time.Duration;
import java.time.LocalDate;
import java.time.LocalTime;
import java.time.temporal.ChronoUnit;
package app;



/**
 * @author neo
 */
public class JobModule extends Module {
    @Override
    protected void initialize() {
//        schedule().timeZone(ZoneId.of("America/Los_Angeles"));

// Path: demo-service/src/main/java/app/demo/job/DemoJob.java
// public class DemoJob implements Job {
//     private final Logger logger = LoggerFactory.getLogger(DemoJob.class);
// 
//     @Override
//     public void execute(JobContext context) {
//         logger.debug("run job, name={}, time={}", context.name, context.scheduledTime);
//     }
// }


// Path: demo-service/src/main/java/app/JobModule.java
import app.demo.job.DemoJob;
import core.framework.module.Module;
import java.time.Duration;
import java.time.LocalDate;
import java.time.LocalTime;
import java.time.temporal.ChronoUnit;

package app;



/**
 * @author neo
 */
public class JobModule extends Module {
    @Override
    protected void initialize() {
//        schedule().timeZone(ZoneId.of("America/Los_Angeles"));

        DemoJob job = bind(DemoJob.class);