Class SpringConfig
- java.lang.Object
-
- de.digitalcollections.cudami.admin.config.SpringConfig
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.EnvironmentAware
@Configuration @ComponentScan(basePackages="de.digitalcollections.cudami.config") @Import(de.digitalcollections.commons.file.config.SpringConfigCommonsFile.class) public class SpringConfig extends java.lang.Object implements org.springframework.context.EnvironmentAware
-
-
Constructor Summary
Constructors Constructor Description SpringConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.context.MessageSourceconfigureMessageSource()Create a resource bundle for your messages ("messages.properties").
This file goes in src/main/resources because you want it to appear at the root of the classpath on deployment.voidsetEnvironment(org.springframework.core.env.Environment environment)
-
-
-
Method Detail
-
configureMessageSource
@Bean(name="messageSource") public org.springframework.context.MessageSource configureMessageSource()
Create a resource bundle for your messages ("messages.properties").
This file goes in src/main/resources because you want it to appear at the root of the classpath on deployment.- Returns:
- message source
-
setEnvironment
public void setEnvironment(org.springframework.core.env.Environment environment)
- Specified by:
setEnvironmentin interfaceorg.springframework.context.EnvironmentAware
-
-