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

The following examples show how to use org.springframework.boot.autoconfigure.thymeleaf.ThymeleafProperties. 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 File: OghamThymeleafV3Configuration.java    From ogham with 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 File: OghamThymeleafV2Configuration.java    From ogham with 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 File: ThymeLeafConfigurer.java    From ogham with 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 File: TemplateConfig.java    From zhcet-web with Apache License 2.0 4 votes vote down vote up
public TemplateConfig(ThymeleafProperties thymeleafProperties) {
    this.thymeleafProperties = thymeleafProperties;
}