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 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 IOException
      Property 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