|
|
@ -49,7 +49,7 @@ public class ConfigurationKit { |
|
|
|
* @param configType 配置类 |
|
|
|
* @param configType 配置类 |
|
|
|
* @param runner 执行器 |
|
|
|
* @param runner 执行器 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public static void modify(Class<? extends Configuration> configType, Runner runner) { |
|
|
|
public static void modify(Class<? extends Configuration> configType, final Runner runner) { |
|
|
|
Configurations.modify(new WorkerFacade(configType) { |
|
|
|
Configurations.modify(new WorkerFacade(configType) { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void run() { |
|
|
|
public void run() { |
|
|
@ -68,7 +68,7 @@ public class ConfigurationKit { |
|
|
|
* @param runner 执行器 |
|
|
|
* @param runner 执行器 |
|
|
|
* @param configTypes 配置类(所有的配置类都会缓存失效) |
|
|
|
* @param configTypes 配置类(所有的配置类都会缓存失效) |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public static void modify(Runner runner, Class<? extends Configuration> configType, Class<? extends Configuration>... configTypes) { |
|
|
|
public static void modify(final Runner runner, Class<? extends Configuration> configType, Class<? extends Configuration>... configTypes) { |
|
|
|
Configurations.modify(new WorkerFacade(configType, configTypes) { |
|
|
|
Configurations.modify(new WorkerFacade(configType, configTypes) { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void run() { |
|
|
|
public void run() { |
|
|
@ -87,7 +87,7 @@ public class ConfigurationKit { |
|
|
|
* @param runner 执行器 |
|
|
|
* @param runner 执行器 |
|
|
|
* @param callBack 事务回调 |
|
|
|
* @param callBack 事务回调 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public static void modify(Class<? extends Configuration> configType, Runner runner, WorkerCallBack callBack) { |
|
|
|
public static void modify(Class<? extends Configuration> configType, final Runner runner, WorkerCallBack callBack) { |
|
|
|
WorkerFacade facade = new WorkerFacade(configType) { |
|
|
|
WorkerFacade facade = new WorkerFacade(configType) { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void run() { |
|
|
|
public void run() { |
|
|
@ -111,7 +111,7 @@ public class ConfigurationKit { |
|
|
|
* @param callBack 事务回调 |
|
|
|
* @param callBack 事务回调 |
|
|
|
* @param configTypes 配置类(所有的配置类都会缓存失效) |
|
|
|
* @param configTypes 配置类(所有的配置类都会缓存失效) |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public static void modify(Runner runner, WorkerCallBack callBack, Class<? extends Configuration> configType, Class<? extends Configuration>... configTypes) { |
|
|
|
public static void modify(final Runner runner, WorkerCallBack callBack, Class<? extends Configuration> configType, Class<? extends Configuration>... configTypes) { |
|
|
|
WorkerFacade facade = new WorkerFacade(configType, configTypes) { |
|
|
|
WorkerFacade facade = new WorkerFacade(configType, configTypes) { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void run() { |
|
|
|
public void run() { |
|
|
|