@Override
    protected void initJobNode() {

        taskTracker = TaskTrackerBuilder.buildByProperties(properties);

        if (!isEnableDispatchRunner()) {

            Map<String, Object> jobRunners = applicationContext.getBeansWithAnnotation(JobRunner4TaskTracker.class);
            if (CollectionUtils.isNotEmpty(jobRunners)) {
                if (jobRunners.size() > 1) {
                    throw new IllegalArgumentException("annotation @" + JobRunner4TaskTracker.class.getSimpleName() + " only should have one");
                }
                for (final Map.Entry<String, Object> entry : jobRunners.entrySet()) {
                    Object handler = entry.getValue();
                    if (handler instanceof JobRunner) {
                        taskTracker.setRunnerFactory(new RunnerFactory() {
                            @Override
                            public JobRunner newRunner() {
                                return (JobRunner) entry.getValue();
                            }
                        });
                    } else {
                        throw new IllegalArgumentException(entry.getKey() + "  is not instance of " + JobRunner.class.getName());
                    }
                }
            }
        } else {

            Map<String, Object> ltsBeanMap = applicationContext.getBeansWithAnnotation(LTS.class);
            if (CollectionUtils.isNotEmpty(ltsBeanMap)) {
                for (Map.Entry<String, Object> entry : ltsBeanMap.entrySet()) {
                    Object bean = entry.getValue();
                    JobRunnerHolder.addLTSBean(bean);
                }
            }
            registerRunnerBeanDefinition();
            taskTracker.setRunnerFactory(new RunnerFactory() {
                @Override
                public JobRunner newRunner() {
                    return (JobRunner) applicationContext.getBean(JOB_RUNNER_BEAN_NAME);
                }
            });
        }

    }
@author Robert HG (254963746@qq.com) on 4/9/16.
lts-spring/src/main/java/com/github/ltsopensource/spring/boot/TaskTrackerAutoConfiguration.java