Class SpringTemplateConfig
java.lang.Object
io.jstach.opt.spring.webflux.example.SpringTemplateConfig
Configures JStachio Spring style.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjstachio
(List<JStachioExtension> services) Creates jstachio from found pluginsjstachioService
(org.springframework.core.env.Environment environment, List<Template<?>> templates) Creates a services based on spring objects.
-
Constructor Details
-
SpringTemplateConfig
public 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 configtemplates
- found templates via component scanning- Returns:
- the services
-
jstachio
Creates jstachio from found plugins- Parameters:
services
- plugins- Returns:
- spring version fo jstachio
-