|
|
@ -78,6 +78,7 @@ public class XxlJobSpringExecutor extends XxlJobExecutor implements ApplicationC
|
|
|
|
|
|
|
|
|
|
|
|
// init job handler from method
|
|
|
|
// init job handler from method
|
|
|
|
String[] beanDefinitionNames = applicationContext.getBeanDefinitionNames();
|
|
|
|
String[] beanDefinitionNames = applicationContext.getBeanDefinitionNames();
|
|
|
|
|
|
|
|
if (beanDefinitionNames!=null && beanDefinitionNames.length>0) {
|
|
|
|
for (String beanDefinitionName : beanDefinitionNames) {
|
|
|
|
for (String beanDefinitionName : beanDefinitionNames) {
|
|
|
|
Object bean = applicationContext.getBean(beanDefinitionName);
|
|
|
|
Object bean = applicationContext.getBean(beanDefinitionName);
|
|
|
|
Method[] methods = bean.getClass().getDeclaredMethods();
|
|
|
|
Method[] methods = bean.getClass().getDeclaredMethods();
|
|
|
@ -133,6 +134,8 @@ public class XxlJobSpringExecutor extends XxlJobExecutor implements ApplicationC
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// ---------------------- applicationContext ----------------------
|
|
|
|
// ---------------------- applicationContext ----------------------
|
|
|
|
private static ApplicationContext applicationContext;
|
|
|
|
private static ApplicationContext applicationContext;
|
|
|
|
|
|
|
|
|
|
|
|