@Override
    public void afterPropertiesSet() throws Exception {
        String cfgPath = System.getProperty("lts.tasktracker.cfg.path");

        TaskTrackerCfg cfg = TaskTrackerCfgLoader.load(cfgPath);

        setJobRunnerClass(cfg.getJobRunnerClass());
        setBizLoggerLevel(cfg.getBizLoggerLevel() == null ? null : cfg.getBizLoggerLevel().name());
        setClusterName(cfg.getClusterName());
        setRegistryAddress(cfg.getRegistryAddress());
        setNodeGroup(cfg.getNodeGroup());
        setWorkThreads(cfg.getWorkThreads());

        Map<String, String> configMap = cfg.getConfigs();
        Properties configs = new Properties();
        if(CollectionUtils.isNotEmpty(configMap)){
            for (Map.Entry<String, String> entry : configMap.entrySet()) {
                configs.put(entry.getKey(), entry.getValue());
            }
        }
        setConfigs(configs);

        super.afterPropertiesSet();
    }
@author Robert HG (254963746@qq.com) on 9/12/15.
lts-startup/src/main/java/com/github/ltsopensource/startup/tasktracker/TaskTrackerFactoryBean.java