/[projects]/WebConfig/src/dk/thoerup/webconfig/ConfigServlet.java
ViewVC logotype

Diff of /WebConfig/src/dk/thoerup/webconfig/ConfigServlet.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1343 by torben, Wed Apr 20 15:19:32 2011 UTC revision 1344 by torben, Wed Apr 20 16:14:33 2011 UTC
# Line 80  public class ConfigServlet extends HttpS Line 80  public class ConfigServlet extends HttpS
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                                                                    
# Line 112  public class ConfigServlet extends HttpS Line 112  public class ConfigServlet extends HttpS
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;

Legend:
Removed from v.1343  
changed lines
  Added in v.1344

  ViewVC Help
Powered by ViewVC 1.1.20