/** * 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 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 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) {