org.apache.wicket.protocol.http
Class ReloadingWicketServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.apache.wicket.protocol.http.WicketServlet
              extended by org.apache.wicket.protocol.http.ReloadingWicketServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class ReloadingWicketServlet
extends WicketServlet

Custom WicketServlet that reloads the web applications when classes are modified. In order to reload your own classes, use include and exclude patterns using wildcards. And in web.xml, point to the reloading wicket servlet instead of the original one.

Example denoting the built-in patterns:

 public class MyServlet extends ReloadingWicketServlet
 {
        static
        {
                ReloadingClassLoader.excludePattern("org.apache.wicket.*");
                ReloadingClassLoader.includePattern("org.apache.wicket.examples.*");
        }
 }
 

Author:
Jean-Baptiste Quenot
See Also:
for complete documentation, and for proper integration with Spring, Serialized Form

Field Summary
 
Fields inherited from class org.apache.wicket.protocol.http.WicketServlet
wicketFilter
 
Constructor Summary
ReloadingWicketServlet()
           
 
Method Summary
protected  WicketFilter newWicketFilter()
           
 
Methods inherited from class org.apache.wicket.protocol.http.WicketServlet
destroy, doGet, doPost, getLastModified, init
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, service, service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReloadingWicketServlet

public ReloadingWicketServlet()
Method Detail

newWicketFilter

protected WicketFilter newWicketFilter()
Overrides:
newWicketFilter in class WicketServlet
Returns:
The wicket filter


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.