Class YamlPropertySourceFactory
- java.lang.Object
-
- app.coronawarn.server.common.persistence.domain.config.YamlPropertySourceFactory
-
- All Implemented Interfaces:
org.springframework.core.io.support.PropertySourceFactory
public class YamlPropertySourceFactory extends Object implements org.springframework.core.io.support.PropertySourceFactory
Because loading yaml files with @PropertySources is not supported in Spring, we need this custom implementation for processing the yamls and converting them to injectable properties in the Spring application context.
-
-
Constructor Summary
Constructors Constructor Description YamlPropertySourceFactory()
YamlPropertySourceFactory(org.springframework.beans.factory.config.YamlPropertiesFactoryBean factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.core.env.PropertySource<?>
createPropertySource(String name, org.springframework.core.io.support.EncodedResource encodedResource)
-
-
-
Method Detail
-
createPropertySource
public org.springframework.core.env.PropertySource<?> createPropertySource(String name, org.springframework.core.io.support.EncodedResource encodedResource)
- Specified by:
createPropertySource
in interfaceorg.springframework.core.io.support.PropertySourceFactory
-
-