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

org.springframework.biz.quartz.AbstractQuartzTask Maven / Gradle / Ivy

There is a newer version: 3.3.x.20241003.RELEASE
Show newest version
package org.springframework.biz.quartz;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.InitializingBean;

/**
 * 抽象的Quartz定时任务对象
 * @author hiwepy
 */
public abstract class AbstractQuartzTask implements InitializingBean{

	protected static Logger LOG = LoggerFactory.getLogger(AbstractQuartzTask.class);
	
	@Override
	public void afterPropertiesSet() throws Exception {
		try {
			//调用抽象方法
			doAfterPropertiesSet();
		} catch (Exception e) {
			LOG.error(e.getMessage());
		}
	}
	
	public abstract void doAfterPropertiesSet() throws Exception;
	
	
	public abstract void task();
	
	 
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy