Class 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