/[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 1328 by torben, Wed Apr 20 04:41:18 2011 UTC revision 1329 by torben, Wed Apr 20 04:45:28 2011 UTC
# Line 105  public class ConfigServlet extends HttpS Line 105  public class ConfigServlet extends HttpS
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                                      

Legend:
Removed from v.1328  
changed lines
  Added in v.1329

  ViewVC Help
Powered by ViewVC 1.1.20