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

org.dromara.solonplugins.job.JobBean Maven / Gradle / Ivy

package org.dromara.solonplugins.job;

import org.dromara.solonplugins.job.impl.JobExecutor;
import org.noear.solon.Solon;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

/**
 * JobBean
 *
 * @author: aoshiguchen
 */
public class JobBean implements Job {

	@Override
	public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
		JobExecutor jobExecutor = Solon.context().getBean(JobExecutor.class);
		if (null != jobExecutor) {
			jobExecutor.execute(jobExecutionContext);
		}
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy