Package ubic.gemma.core.config
Class SettingsConfig
- java.lang.Object
-
- ubic.gemma.core.config.SettingsConfig
-
@Configuration public class SettingsConfig extends Object
Beans declaration for making the settings available via the Spring Environment and placeholder substitution.- Author:
- poirigui
-
-
Constructor Summary
Constructors Constructor Description SettingsConfig()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BaseCodeConfigurerbaseCodeConfigurer(org.springframework.core.env.PropertySources ps)org.springframework.core.convert.ConversionServiceconversionService()The default Spring conversion service has limited support for Java 8 types.static org.springframework.context.support.PropertySourcesPlaceholderConfigurerpropertySourcesPlaceholderConfigurer(org.springframework.core.env.PropertySources ps)Allow for substitution placeholders with values from the settings.static Map<String,String>settingsDescriptions()static org.springframework.core.env.PropertySourcessettingsPropertySources()Property sources populated from various settings files.
-
-
-
Method Detail
-
propertySourcesPlaceholderConfigurer
@Bean public static org.springframework.context.support.PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer(@Qualifier("settingsPropertySources") org.springframework.core.env.PropertySources ps)Allow for substitution placeholders with values from the settings.
-
baseCodeConfigurer
@Bean public static BaseCodeConfigurer baseCodeConfigurer(@Qualifier("settingsPropertySources") org.springframework.core.env.PropertySources ps)
-
conversionService
@Bean public org.springframework.core.convert.ConversionService conversionService()
The default Spring conversion service has limited support for Java 8 types.This might be resolved in Spring 4+, in which case we could remove this declaration.
-
settingsPropertySources
@Bean public static org.springframework.core.env.PropertySources settingsPropertySources() throws IOExceptionProperty sources populated from various settings files.This is mainly used by
propertySourcesPlaceholderConfigurer(PropertySources)for substituting${...}placeholders.- Throws:
IOException
-
settingsDescriptions
@Bean public static Map<String,String> settingsDescriptions() throws IOException
- Throws:
IOException
-
-