title: Override default-lazy-init=true for Spring bean definitions
body: <p>I am maintaining a large Java EE system. Most of the business logic is converted from EJB:s into POJO:s configured in several spring context configuration files. EJB:s are mostly used as Facades, that looks up the business logic spring beans from a context composed of all spring context configuration files mentioned earlier. For this we use the AbstractStatelessSessionBean provided with the spring framework.</p>
  
  <p>All these configuration files have the default-lazy-init=true directive, which means that the business logic beans are not created until they are actually used by the system. This is preferable most of the time since republishing in developer mode becomes faster.</p>
  
  <p>But when large merges are made, we are having problems finding all the configuration errors, such as missing dependencies.</p>
  
  <p>My idea is to write some form of integration test, with the purpose of finding those errors. This means, i think, that I need to find a way to override all default-lazy-init=true declarations when creating the application context.</p>
  
  <p>Is there any way of doing this programmatically, or perhaps with some test-only context file that includes all the actual context files?</p>