kuali/kc — pull request #24 by leoherbie (2014-02-20 16:17:27+00:00)
Title: KRACOEUS-6958: organizing spring files

This pull request is laying down some standards for our spring files and implementing those standards in sys. The basic concepts are:

Each module will be self-contained in regards to spring files
Each module will have 4 spring files sitting in org.kuali.coeus..impl. The following are the files:

ModuleBootstrapSpringBeans.xml //this contains our configurer which loads the component spring file
ModuleComponentSpringBeans.xml //this contains all of the spring beans for the module that aren't autowired
ModuleImportModuleSpringBeans.xml //this contains any spring beans imported from other kc modules
ModuleImportRiceSpringBeans.xml //this file contains any spring beans imported from rice

Any Spring file designed to be imported across modules (using .framework. I anticipate this to be rare as most beans should be shared across modules using the GRL. Currently we have two of these "import" files:

ImportDataSourceSpringBeans.xml //this contains datasource beans
ImportRiceKradSpringBeans.xml //this contains krad beans

I think in the future we should think about whether these "import" files in correct or whether we should be retrieving beans using the GRL from other modules or rice.

Finally all module "bootstrap" spring files will be imported into our main bootstrap file for kc:

KcBootstrapSpringBeans.xml