Class CustomXxlJobSpringExecutor

java.lang.Object
com.xxl.job.core.executor.XxlJobExecutor
com.xxl.job.core.executor.impl.XxlJobSpringExecutor
com.elitesland.ystdms.sys.xxljob.config.CustomXxlJobSpringExecutor
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.SmartInitializingSingleton, org.springframework.context.ApplicationContextAware

public class CustomXxlJobSpringExecutor extends com.xxl.job.core.executor.impl.XxlJobSpringExecutor
自定义 xxl-job 执行器,支持在任务执行前后添加自定义逻辑。
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    registryJobHandler(com.xxl.job.core.handler.annotation.XxlJob xxlJob, Object bean, Method executeMethod)
     

    Methods inherited from class com.xxl.job.core.executor.impl.XxlJobSpringExecutor

    afterSingletonsInstantiated, destroy, getApplicationContext, setApplicationContext, setExcludedPackage

    Methods inherited from class com.xxl.job.core.executor.XxlJobExecutor

    getAdminBizList, loadJobHandler, loadJobThread, registJobThread, registryJobHandler, removeJobThread, setAccessToken, setAddress, setAdminAddresses, setAppname, setIp, setLogPath, setLogRetentionDays, setPort, setTimeout, start

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CustomXxlJobSpringExecutor

      public CustomXxlJobSpringExecutor(XxlJobProperties properties)
  • Method Details

    • registryJobHandler

      protected void registryJobHandler(com.xxl.job.core.handler.annotation.XxlJob xxlJob, Object bean, Method executeMethod)
      Overrides:
      registryJobHandler in class com.xxl.job.core.executor.XxlJobExecutor