105 |
if (reloadmethod != null) { //reload |
if (reloadmethod != null) { //reload |
106 |
|
|
107 |
Method method = configObject.getClass().getDeclaredMethod(reloadmethod, (Class<?>[]) null); |
Method method = configObject.getClass().getDeclaredMethod(reloadmethod, (Class<?>[]) null); |
108 |
method.setAccessible(true); |
ReloadConfig anno = method.getAnnotation(ReloadConfig.class); |
109 |
|
if (anno == null) { |
110 |
|
resp.sendError(500, "Method is not annotated"); |
111 |
|
return; |
112 |
|
} |
113 |
|
|
114 |
|
|
115 |
|
method.setAccessible(true); |
116 |
method.invoke(configObject, (Object[])null); |
method.invoke(configObject, (Object[])null); |
117 |
|
|
118 |
} else { //set var |
} else { //set var |