Bean Configurations
The Spring Configurator supports an automatic inclusion mechanism for bean definitions. By default all configuration files ending with *.xml are read from these locations in alphabetical order:
- All configuration files contained in jar files located at /META-INF/cocoon/spring
- All configuration files from /WEB-INF/classes/META-INF/cocoon/spring
- All configuration files contained in jar files located at /META-INF/cocoon/spring/[RUNNING_MODE]
- All configuration files from /WEB-INF/classes/META-INF/cocoon/spring/[RUNNING_MODE]
Property Overriding
To customize bean configurations according to your environment, the Cocoon Spring Configurator provides built-in support for Spring's property override configuration mechanism. By default, property files are read in alphabetical order from the following locations:- All files ending with *.properties contained in jar files located at /META-INF/cocoon/spring
- All files ending with *.properties from /WEB-INF/classes/META-INF/cocoon/spring
- All files ending with *.properties contained in jar files located at /META-INF/cocoon/spring/[RUNNING_MODE]
- All files ending with *.properties from /WEB-INF/classes/META-INF/cocoon/spring/[RUNNING_MODE]
- All files ending with *.properties from /WEB-INF/cocoon/spring
- All files ending with *.properties from /WEB-INF/cocoon/spring/[RUNNING_MODE]
my.special.beanName/property=somevalue
Errors and Improvements? If you see any errors or potential improvements in this document please help
us: View, Edit or comment on the latest development version (registration required).