View Javadoc

1   package org.appfuse.webapp.action;
2   
3   import org.appfuse.webapp.listener.StartupListener;
4   
5   import java.io.IOException;
6   import java.io.Serializable;
7   
8   /**
9    * JSF Page class to handle reloading options in servlet context.
10   *
11   * @author Matt Raible
12   */
13  public class Reload extends BasePage implements Serializable {
14      private static final long serialVersionUID = 2466200890766730676L;
15  
16      public String execute() throws IOException {
17  
18          if (log.isDebugEnabled()) {
19              log.debug("Entering 'execute' method");
20          }
21  
22          StartupListener.setupContext(getServletContext());
23          addMessage("reload.succeeded"); 
24  
25          return "success";
26      }
27  
28  }