List of usage examples for org.apache.wicket.util.watch ModificationWatcher ModificationWatcher
public ModificationWatcher()
From source file:vlove.web.WicketApplication.java
License:Open Source License
/** * Do all our deploy-time magic./*from w ww . j av a 2s. c o m*/ * * @See {@link WebApplication} */ @Override protected void init() { log.info("vlove coming alive."); super.init(); getComponentInstantiationListeners().add(new SpringComponentInjector(this)); new AnnotatedMountScanner().scanPackage("vlove.web").mount(this); /* * getApplicationSettings().setAccessDeniedPage(AccessDeniedPage.class); getApplicationSettings().setInternalErrorPage(ErrorPage.class); getApplicationSettings().setPageExpiredErrorPage(PageExpiredPage.class); */ getMarkupSettings().setStripComments(true); getMarkupSettings().setStripWicketTags(true); final RuntimeConfigurationType devType = getConfigurationType(); if (devType != null && devType.equals(RuntimeConfigurationType.DEVELOPMENT)) { getResourceSettings().setResourceWatcher(new ModificationWatcher()); getResourceSettings().setResourcePollFrequency(Duration.seconds(1)); } // getSecuritySettings().setAuthorizationStrategy(new // AcsAnnotationAuthorizationStrategy(getLoginPage())); getSecuritySettings().setEnforceMounts(true); log.info("It's alive, aliiiiiive!"); }