java.lang.Object
io.jstach.opt.spring.webflux.example.SpringTemplateConfig

@Configuration public class SpringTemplateConfig extends Object
Configures JStachio Spring style.
  • Constructor Details

    • SpringTemplateConfig

      Do nothing constructor to placate jdk 18 javadoc
  • Method Details

    • jstachioService

      @Bean public SpringJStachioExtension jstachioService(org.springframework.core.env.Environment environment, List<Template<?>> templates)
      Creates a services based on spring objects.
      Parameters:
      environment - used for config
      templates - found templates via component scanning
      Returns:
      the services
    • jstachio

      @Bean public SpringJStachio jstachio(List<JStachioExtension> services)
      Creates jstachio from found plugins
      Parameters:
      services - plugins
      Returns:
      spring version fo jstachio