Spring XML Initialization Order

CSI

New Member
Can someone explain the order of initialization for beans in a Spring xml configuration file? It appears to be order dependent in certain circumstances but I was unable to find any documentation indicating this. When using a single configuration file, bean order appears to be independent. However, if overriding a bean in a parent configuration, the order can be significant. I need to do additional testing to confirm exactly what circumstances cause this to fail. I am using Spring 3.0.5 and using a configuration file to override beans in my production code with mocked implementations. The beans are autowired into a service and mocked objects are why the override is needed. Any insight on this would be greatly appreciated.
 
Back
Top