Package org.apache.wicket.protocol.http
Class ReloadingWicketServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- org.apache.wicket.protocol.http.WicketServlet
-
- 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.*"); } }
-
-
Field Summary
-
Fields inherited from class org.apache.wicket.protocol.http.WicketServlet
wicketFilter
-
-
Constructor Summary
Constructors Constructor Description ReloadingWicketServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected WicketFilter
newWicketFilter()
-
Methods inherited from class org.apache.wicket.protocol.http.WicketServlet
destroy, doGet, doPost, init
-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
-
-
-
-
Constructor Detail
-
ReloadingWicketServlet
public ReloadingWicketServlet()
-
-
Method Detail
-
newWicketFilter
protected WicketFilter newWicketFilter()
- Overrides:
newWicketFilter
in classWicketServlet
- Returns:
- The wicket filter
-
-