mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user