diff --git a/xxl-job-admin/src/main/webapp/WEB-INF/template/jobinfo/jobinfo.index.ftl b/xxl-job-admin/src/main/webapp/WEB-INF/template/jobinfo/jobinfo.index.ftl index 5122834..87fce72 100644 --- a/xxl-job-admin/src/main/webapp/WEB-INF/template/jobinfo/jobinfo.index.ftl +++ b/xxl-job-admin/src/main/webapp/WEB-INF/template/jobinfo/jobinfo.index.ftl @@ -193,14 +193,10 @@
serviceBeanMap = XxlJobExecutor.applicationContext.getBeansWithAnnotation(JobHander.class);
if (serviceBeanMap!=null && serviceBeanMap.size()>0) {
for (Object serviceBean : serviceBeanMap.values()) {
- String jobName = serviceBean.getClass().getAnnotation(JobHander.class).value();
- if (jobName!=null && jobName.trim().length()>0 && serviceBean instanceof IJobHandler) {
- IJobHandler handler = (IJobHandler) serviceBean;
- HandlerRepository.regist(jobName, handler);
- }
+ if (serviceBean instanceof IJobHandler){
+ String jobKeys = serviceBean.getClass().getAnnotation(JobHander.class).value();
+ if (jobKeys!=null && jobKeys.trim().length()>0) {
+ Set
serviceBeanMap = XxlJobExecutor.applicationContext.getBeansWithAnnotation(JobHander.class);
if (serviceBeanMap!=null && serviceBeanMap.size()>0) {
for (Object serviceBean : serviceBeanMap.values()) {
- String jobName = serviceBean.getClass().getAnnotation(JobHander.class).value();
- if (jobName!=null && jobName.trim().length()>0 && serviceBean instanceof IJobHandler) {
- IJobHandler handler = (IJobHandler) serviceBean;
- HandlerRepository.regist(jobName, handler);
- }
+ if (serviceBean instanceof IJobHandler){
+ String jobKeys = serviceBean.getClass().getAnnotation(JobHander.class).value();
+ if (jobKeys!=null && jobKeys.trim().length()>0) {
+ Set
serviceBeanMap = XxlJobExecutor.applicationContext.getBeansWithAnnotation(JobHander.class);
if (serviceBeanMap!=null && serviceBeanMap.size()>0) {
for (Object serviceBean : serviceBeanMap.values()) {
- String jobName = serviceBean.getClass().getAnnotation(JobHander.class).value();
- if (jobName!=null && jobName.trim().length()>0 && serviceBean instanceof IJobHandler) {
- IJobHandler handler = (IJobHandler) serviceBean;
- HandlerRepository.regist(jobName, handler);
- }
+ if (serviceBean instanceof IJobHandler){
+ String jobKeys = serviceBean.getClass().getAnnotation(JobHander.class).value();
+ if (jobKeys!=null && jobKeys.trim().length()>0) {
+ Set