Package ubic.gemma.core.config
Class SettingsConfig
java.lang.Object
ubic.gemma.core.config.SettingsConfig
Beans declaration for making the settings available via the Spring Environment and placeholder substitution.
- Author:
- poirigui
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BaseCodeConfigurer
baseCodeConfigurer
(org.springframework.core.env.PropertySources ps) org.springframework.core.convert.ConversionService
The default Spring conversion service has limited support for Java 8 types.static org.springframework.context.support.PropertySourcesPlaceholderConfigurer
propertySourcesPlaceholderConfigurer
(org.springframework.core.env.PropertySources ps) Allow for substitution placeholders with values from the settings.static org.springframework.core.env.PropertySources
Property sources populated from various settings files.
-
Constructor Details
-
SettingsConfig
public SettingsConfig()
-
-
Method Details
-
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
- Throws:
IOException
-