80 |
for(Method method : methods) { |
for(Method method : methods) { |
81 |
method.setAccessible(true); |
method.setAccessible(true); |
82 |
|
|
83 |
ReloadConfig anno = method.getAnnotation(ReloadConfig.class); |
ReloadConfigMethod anno = method.getAnnotation(ReloadConfigMethod.class); |
84 |
if (anno == null) |
if (anno == null) |
85 |
continue; |
continue; |
86 |
|
|
112 |
if (reloadmethod != null) { //reload |
if (reloadmethod != null) { //reload |
113 |
|
|
114 |
Method method = configObject.getClass().getDeclaredMethod(reloadmethod, (Class<?>[]) null); |
Method method = configObject.getClass().getDeclaredMethod(reloadmethod, (Class<?>[]) null); |
115 |
ReloadConfig anno = method.getAnnotation(ReloadConfig.class); |
ReloadConfigMethod anno = method.getAnnotation(ReloadConfigMethod.class); |
116 |
if (anno == null) { |
if (anno == null) { |
117 |
resp.sendError(500, "Method is not annotated"); |
resp.sendError(500, "Method is not annotated"); |
118 |
return; |
return; |