Package com.xxl.job.core.executor.impl
Class XxlJobSpringExecutor
java.lang.Object
com.xxl.job.core.executor.XxlJobExecutor
com.xxl.job.core.executor.impl.XxlJobSpringExecutor
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.SmartInitializingSingleton,org.springframework.context.ApplicationContextAware
public class XxlJobSpringExecutor
extends XxlJobExecutor
implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.SmartInitializingSingleton, org.springframework.beans.factory.DisposableBean
xxl-job executor (for spring)
- Author:
- xuxueli 2018-11-01 09:24:52
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddestroy()static org.springframework.context.ApplicationContextvoidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) Methods inherited from class com.xxl.job.core.executor.XxlJobExecutor
getAdminBizList, loadJobHandler, loadJobThread, registJobHandler, registJobHandler, registJobThread, removeJobThread, setAccessToken, setAddress, setAdminAddresses, setAppname, setIp, setLogPath, setLogRetentionDays, setPort, setTimeout, start
-
Constructor Details
-
XxlJobSpringExecutor
public XxlJobSpringExecutor()
-
-
Method Details
-
afterSingletonsInstantiated
public void afterSingletonsInstantiated()- Specified by:
afterSingletonsInstantiatedin interfaceorg.springframework.beans.factory.SmartInitializingSingleton
-
destroy
public void destroy()- Specified by:
destroyin interfaceorg.springframework.beans.factory.DisposableBean- Overrides:
destroyin classXxlJobExecutor
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
getApplicationContext
public static org.springframework.context.ApplicationContext getApplicationContext()
-