public static EmbeddedJettyBuilder . ServletContextHandlerBuilder addWicketHandler ( EmbeddedJettyBuilder embeddedJettyBuilder , String contextPath , EventListener springContextloader , Class < ? extends WebApplication > wicketApplication , boolean development ) { EmbeddedJettyBuilder . ServletContextHandlerBuilder wicketHandler = embeddedJettyBuilder . createRootServletContextHandler ( contextPath ) . setClassLoader ( Thread . currentThread ( ) . getContextClassLoader ( ) ) . addEventListener ( springContextloader ) ; return addWicketHandler ( wicketHandler , wicketApplication , development ) ; }
Adds wicket handler at root context .