Package org.springframework.web.servlet.view.groovy

Examples of org.springframework.web.servlet.view.groovy.GroovyMarkupConfigurer$LocaleTemplateResolver


    VelocityConfigurer velocityConfigurer = appContext.getBean(VelocityConfigurer.class);
    assertNotNull(velocityConfigurer);
    accessor = new DirectFieldAccessor(velocityConfigurer);
    assertEquals("/test", accessor.getPropertyValue("resourceLoaderPath"));

    GroovyMarkupConfigurer groovyMarkupConfigurer = appContext.getBean(GroovyMarkupConfigurer.class);
    assertNotNull(groovyMarkupConfigurer);
    assertEquals("/test", groovyMarkupConfigurer.getResourceLoaderPath());
    assertTrue(groovyMarkupConfigurer.isAutoIndent());
    assertFalse(groovyMarkupConfigurer.isCacheTemplates());
  }
View Full Code Here


      registry.groovy();
    }

    @Bean
    public GroovyMarkupConfigurer groovyMarkupConfigurer() {
      GroovyMarkupConfigurer configurer = new GroovyMarkupConfigurer();
      configurer.setResourceLoaderPath("/WEB-INF/");
      return configurer;
    }
View Full Code Here

    @Bean
    @ConditionalOnMissingBean(GroovyMarkupConfig.class)
    @ConfigurationProperties(prefix = "spring.groovy.template.configuration")
    public GroovyMarkupConfigurer groovyMarkupConfigurer() {
      GroovyMarkupConfigurer configurer = new GroovyMarkupConfigurer();
      configurer.setResourceLoaderPath(this.properties.getPrefix());
      configurer.setCacheTemplates(this.properties.isCache());
      if (this.templateEngine != null) {
        configurer.setTemplateEngine(this.templateEngine);
      }
      return configurer;
    }
View Full Code Here

TOP

Related Classes of org.springframework.web.servlet.view.groovy.GroovyMarkupConfigurer$LocaleTemplateResolver

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.