Java Code Examples for org.springframework.boot.autoconfigure.thymeleaf.ThymeleafProperties

The following examples show how to use org.springframework.boot.autoconfigure.thymeleaf.ThymeleafProperties. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: ogham   Source File: OghamThymeleafV3Configuration.java    License: Apache License 2.0 6 votes vote down vote up
@Bean
@ConditionalOnMissingBean(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) ThymeleafProperties thymeleafProperties) {
	return new ThymeLeafConfigurer(
			springTemplateEngineSupplier, 
			contextConverter,
			templateProperties, 
			emailProperties, 
			smsProperties, 
			thymeleafProperties, 
			ThymeleafV3EmailBuilder.class, 
			ThymeleafV3SmsBuilder.class);
}
 
Example 2
Source Project: ogham   Source File: OghamThymeleafV2Configuration.java    License: Apache License 2.0 6 votes vote down vote up
@Bean
@ConditionalOnMissingBean(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) ThymeleafProperties thymeleafProperties) {
	return new ThymeLeafConfigurer(
			springTemplateEngineSupplier, 
			contextConverter, 
			templateProperties, 
			emailProperties, 
			smsProperties, 
			thymeleafProperties, 
			ThymeleafV2EmailBuilder.class, 
			ThymeleafV2SmsBuilder.class);
}
 
Example 3
Source Project: ogham   Source File: ThymeLeafConfigurer.java    License: Apache License 2.0 5 votes vote down vote up
public ThymeLeafConfigurer(TemplateEngineSupplier springTemplateEngineSupplier, ThymeleafContextConverter contextConverter, OghamCommonTemplateProperties templateProperties,
		OghamEmailProperties emailProperties, OghamSmsProperties smsProperties, ThymeleafProperties springProperties, Class<? extends AbstractThymeleafBuilder<?, ?, ?>> emailBuilderClass,
		Class<? extends AbstractThymeleafBuilder<?, ?, ?>> smsBuilderClass) {
	super();
	this.springTemplateEngineSupplier = springTemplateEngineSupplier;
	this.contextConverter = contextConverter;
	this.templateProperties = templateProperties;
	this.emailProperties = emailProperties;
	this.smsProperties = smsProperties;
	this.springProperties = springProperties;
	this.emailBuilderClass = emailBuilderClass;
	this.smsBuilderClass = smsBuilderClass;
}
 
Example 4
Source Project: zhcet-web   Source File: TemplateConfig.java    License: Apache License 2.0 4 votes vote down vote up
public TemplateConfig(ThymeleafProperties thymeleafProperties) {
    this.thymeleafProperties = thymeleafProperties;
}