if (AWConcreteServerApplication.IsRapidTurnaroundEnabled) {
AWPage.registerLifecycleListener(new AWPage.LifecycleListener() {
// Listen for new page activations and check for rule file changes
public void pageWillRender(AWPage page)
{
AWValidationContext validationContext = page.validationContext();
validationContext.clearGeneralErrors("MetaUI");
try {
checkRuleFileChanges(false);
} catch (RuleLoadingException exception) {
validationContext.addGeneralError("MetaUI", exception.getMessage(), exception);
}
}
public void pageWillAwake (AWPage page) { }
public void pageWillSleep (AWPage page) { }