ModelNode config = payload.get("configuration").asObject();
ModelNode jspCfg = config.get("jsp-configuration").asObject();
//ModelNode staticCfg = config.get("static-resources").asObject();
JSPContainerConfiguration jspConfig = factory.jspConfig().as();
if(payload.hasDefined("instance-id"))
jspConfig.setInstanceId(payload.get("instance-id").asString());
jspConfig.setDisabled(jspCfg.get("disabled").asBoolean());
jspConfig.setCheckInterval(jspCfg.get("check-interval").asInt());
jspConfig.setDevelopment(jspCfg.get("development").asBoolean());
jspConfig.setDisplaySource(jspCfg.get("display-source-fragment").asBoolean());
jspConfig.setKeepGenerated(jspCfg.get("keep-generated").asBoolean());
jspConfig.setRecompile(jspCfg.get("recompile-on-fail").asBoolean());
getView().setJSPConfig(jspConfig);
}
}
});