@Configuration @ConditionalOnClass(value={org.thymeleaf.spring4.SpringTemplateEngine.class,ThymeleafV2EmailBuilder.class}) @EnableConfigurationProperties(value=OghamThymeleafProperties.class) public class OghamThymeleafV2Configuration extends Object
Constructor and Description |
---|
OghamThymeleafV2Configuration() |
@Bean @ConditionalOnMissingBean(value=TemplateEngineSupplier.class) public TemplateEngineSupplier oghamTemplateEngineSupplier(@Autowired(required=false) org.thymeleaf.spring4.SpringTemplateEngine springTemplateEngine)
@Bean @ConditionalOnMissingBean(value=ThymeleafContextConverter.class) @ConditionalOnNotWebApplication public ThymeleafContextConverter springStandaloneThymeleafContextConverter(StaticVariablesProvider staticVariablesProvider, ThymeleafEvaluationContextProvider thymeleafEvaluationContextProvider, ContextMerger contextMerger)
@Bean @ConditionalOnMissingBean(value=ThymeleafContextConverter.class) @ConditionalOnWebApplication public ThymeleafContextConverter springWebThymeleafContextConverter(StaticVariablesProvider staticVariablesProvider, ThymeleafEvaluationContextProvider thymeleafEvaluationContextProvider, ContextMerger contextMerger, org.springframework.context.ApplicationContext applicationContext, WebContextProvider webContextProvider)
@Bean @ConditionalOnWebApplication public WebContextProvider webContextProvider()
@Bean @ConditionalOnMissingBean(value=ThymeleafEvaluationContextProvider.class) public ThymeleafEvaluationContextProvider springThymeleafEvaluationContextProvider(OghamThymeleafProperties props, org.springframework.beans.factory.BeanFactory beanFactory, @Autowired(required=false) org.springframework.core.convert.ConversionService conversionService)
@Bean @ConditionalOnMissingBean(value=StaticVariablesProvider.class) public StaticVariablesProvider springThymeleafStaticVariablesProvider()
@Bean @ConditionalOnMissingBean(value=ContextMerger.class) public ContextMerger contextMerger()
@Bean @ConditionalOnMissingBean(value=ThymeLeafConfigurer.class) public ThymeLeafConfigurer thymeleafConfigurer(TemplateEngineSupplier springTemplateEngineSupplier, @Autowired(required=false) ThymeleafContextConverter contextConverter, @Autowired(required=false) OghamCommonTemplateProperties templateProperties, @Autowired(required=false) OghamEmailProperties emailProperties, @Autowired(required=false) OghamSmsProperties smsProperties, @Autowired(required=false) org.springframework.boot.autoconfigure.thymeleaf.ThymeleafProperties thymeleafProperties)
Copyright © 2021. All rights reserved.