|
|
@ -18,16 +18,15 @@ import javax.sql.DataSource;
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @author xuxueli 2017-04-28
|
|
|
|
* @author xuxueli 2017-04-28
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Component
|
|
|
|
|
|
|
|
public class XxlJobAdminConfig implements InitializingBean{
|
|
|
|
public class XxlJobAdminConfig {
|
|
|
|
private static XxlJobAdminConfig adminConfig = null;
|
|
|
|
private static XxlJobAdminConfig adminConfig = null;
|
|
|
|
public static XxlJobAdminConfig getAdminConfig() {
|
|
|
|
public static XxlJobAdminConfig getAdminConfig() {
|
|
|
|
return adminConfig;
|
|
|
|
return adminConfig;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public static void setAdminConfig(XxlJobAdminConfig config) {
|
|
|
|
public void afterPropertiesSet() throws Exception {
|
|
|
|
XxlJobAdminConfig.adminConfig = config;
|
|
|
|
adminConfig = this;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// conf
|
|
|
|
// conf
|
|
|
|