Allow ApplicationContextHelper to support both Lazy and NoAutoStart, where previously it only one at a time could be used.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@18844 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Nick Burch
2010-02-25 14:17:51 +00:00
parent 0a48463756
commit cfc0643817
4 changed files with 50 additions and 15 deletions

View File

@@ -52,6 +52,13 @@ public class LazyClassPathXmlApplicationContext extends
protected void initBeanDefinitionReader(XmlBeanDefinitionReader reader) {
super.initBeanDefinitionReader(reader);
postInitBeanDefinitionReader(reader);
}
/**
* Does the work of enabling Lazy Init on the xml bean reader
*/
protected static void postInitBeanDefinitionReader(XmlBeanDefinitionReader reader) {
reader.setDocumentReaderClass(AlwaysLazyInitBeanDefinitionDocumentReader.class);
}