All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mntviews.base.BridgeJob Maven / Gradle / Ivy

The newest version!
package com.mntviews.base;

import com.mntviews.bridge.service.Executable;
import org.quartz.Job;
import org.quartz.JobDataMap;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

public class BridgeJob implements Job {


    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        JobDataMap dataMap = context.getJobDetail().getJobDataMap();
        Executable bridgeContext = (Executable)dataMap.get("context");
        bridgeContext.execute();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy