/** * Invoked at startup. * If no {@link #setTemplateEngine(MarkupTemplateEngine) templateEngine} has * been manually set, this method looks up a {@link GroovyMarkupConfig} bean * by type and uses it to obtain the Groovy Markup template engine. * @see GroovyMarkupConfig * @see #setTemplateEngine(groovy.text.markup.MarkupTemplateEngine) */ @Override protected void initApplicationContext(ApplicationContext context) { super.initApplicationContext(); if (this.engine == null) { setTemplateEngine(autodetectMarkupTemplateEngine()); } }
new RequestContext(request, response, getServletContext(), model)); applyContentType(response); logger.debug("Rendering [" + getUrl() + "]"); renderMergedTemplateModel(model, request, response);
@Override protected AbstractUrlBasedView buildView(String viewName) throws Exception { AbstractTemplateView view = (AbstractTemplateView) super.buildView(viewName); view.setExposeRequestAttributes(this.exposeRequestAttributes); view.setAllowRequestOverride(this.allowRequestOverride); view.setExposeSessionAttributes(this.exposeSessionAttributes); view.setAllowSessionOverride(this.allowSessionOverride); view.setExposeSpringMacroHelpers(this.exposeSpringMacroHelpers); return view; }
new RequestContext(request, response, getServletContext(), model)); applyContentType(response); renderMergedTemplateModel(model, request, response);
@Override protected AbstractUrlBasedView buildView(String viewName) throws Exception { AbstractTemplateView view = (AbstractTemplateView) super.buildView(viewName); view.setExposeRequestAttributes(this.exposeRequestAttributes); view.setAllowRequestOverride(this.allowRequestOverride); view.setExposeSessionAttributes(this.exposeSessionAttributes); view.setAllowSessionOverride(this.allowSessionOverride); view.setExposeSpringMacroHelpers(this.exposeSpringMacroHelpers); return view; }
/** * Invoked at startup. * If no {@link #setTemplateEngine(MarkupTemplateEngine) templateEngine} has * been manually set, this method looks up a {@link GroovyMarkupConfig} bean * by type and uses it to obtain the Groovy Markup template engine. * @see GroovyMarkupConfig * @see #setTemplateEngine(groovy.text.markup.MarkupTemplateEngine) */ @Override protected void initApplicationContext(ApplicationContext context) { super.initApplicationContext(); if (this.engine == null) { setTemplateEngine(autodetectMarkupTemplateEngine()); } }
new RequestContext(request, response, getServletContext(), model)); applyContentType(response); logger.debug("Rendering [" + getUrl() + "]"); renderMergedTemplateModel(model, request, response);
@Override protected AbstractUrlBasedView buildView(String viewName) throws Exception { AbstractTemplateView view = (AbstractTemplateView) super.buildView(viewName); view.setExposeRequestAttributes(this.exposeRequestAttributes); view.setAllowRequestOverride(this.allowRequestOverride); view.setExposeSessionAttributes(this.exposeSessionAttributes); view.setAllowSessionOverride(this.allowSessionOverride); view.setExposeSpringMacroHelpers(this.exposeSpringMacroHelpers); return view; }
/** * Invoked at startup. * If no {@link #setTemplateEngine(MarkupTemplateEngine) templateEngine} has * been manually set, this method looks up a {@link GroovyMarkupConfig} bean * by type and uses it to obtain the Groovy Markup template engine. * @see GroovyMarkupConfig * @see #setTemplateEngine(groovy.text.markup.MarkupTemplateEngine) */ @Override protected void initApplicationContext(ApplicationContext context) { super.initApplicationContext(); if (this.engine == null) { setTemplateEngine(autodetectMarkupTemplateEngine()); } }
/** * Invoked on startup. Looks for a single VelocityConfig bean to * find the relevant VelocityEngine for this factory. */ @Override protected void initApplicationContext() throws BeansException { super.initApplicationContext(); if (getVelocityEngine() == null) { // No explicit VelocityEngine: try to autodetect one. setVelocityEngine(autodetectVelocityEngine()); } }
/** * Invoked on startup. Looks for a single VelocityConfig bean to find the relevant VelocityEngine for this factory. */ @Override protected void initApplicationContext() throws BeansException { super.initApplicationContext(); if (getVelocityEngine() == null) { // No explicit VelocityEngine: try to autodetect one. setVelocityEngine(autodetectVelocityEngine()); } }
/** * Invoked on startup. Looks for a single VelocityConfig bean to * find the relevant VelocityEngine for this factory. */ @Override protected void initApplicationContext() throws BeansException { super.initApplicationContext(); if (getVelocityEngine() == null) { // No explicit VelocityEngine: try to autodetect one. setVelocityEngine(autodetectVelocityEngine()); } }
/** * Invoked on startup. Looks for a single VelocityConfig bean to * find the relevant VelocityEngine for this factory. */ @Override protected void initApplicationContext() throws BeansException { super.initApplicationContext(); if (getVelocityEngine() == null) { // No explicit VelocityEngine: try to autodetect one. setVelocityEngine(autodetectVelocityEngine()); } }
protected void initApplicationContext() throws BeansException { super.initApplicationContext(); GenericServlet servlet = new GenericServletAdapter(); try { servlet.init(new DelegatingServletConfig()); } catch (ServletException ex) { throw new BeanInitializationException("Initialization of GenericServlet adapter failed", ex); } }
@Override protected void initApplicationContext(ApplicationContext context) { super.initApplicationContext(context); RythmEngine engine = getRythmEngine(); if (engine == null) {