geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r706663 - /geronimo/gshell/trunk/gshell-support/gshell-spring/src/main/java/org/apache/geronimo/gshell/spring/BeanContainerContextSupport.java
Date Tue, 21 Oct 2008 15:44:39 GMT
Author: jdillon
Date: Tue Oct 21 08:44:38 2008
New Revision: 706663

URL: http://svn.apache.org/viewvc?rev=706663&view=rev
Log:
Don't eagerly load classes, trying to squeeze as much speed as we can for boot up

Modified:
    geronimo/gshell/trunk/gshell-support/gshell-spring/src/main/java/org/apache/geronimo/gshell/spring/BeanContainerContextSupport.java

Modified: geronimo/gshell/trunk/gshell-support/gshell-spring/src/main/java/org/apache/geronimo/gshell/spring/BeanContainerContextSupport.java
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-support/gshell-spring/src/main/java/org/apache/geronimo/gshell/spring/BeanContainerContextSupport.java?rev=706663&r1=706662&r2=706663&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-support/gshell-spring/src/main/java/org/apache/geronimo/gshell/spring/BeanContainerContextSupport.java
(original)
+++ geronimo/gshell/trunk/gshell-support/gshell-spring/src/main/java/org/apache/geronimo/gshell/spring/BeanContainerContextSupport.java
Tue Oct 21 08:44:38 2008
@@ -207,8 +207,7 @@
 		// uninitialized to let the bean factory post-processors apply to them!
 		String[] postProcessorNames = beanFactory.getBeanNamesForType(BeanFactoryPostProcessor.class,
true, false);
 
-		// Separate between BeanFactoryPostProcessors that implement PriorityOrdered,
-		// Ordered, and the rest.
+		// Separate between BeanFactoryPostProcessors that implement PriorityOrdered, Ordered,
and the rest.
 		List<BeanFactoryPostProcessor> priorityOrderedPostProcessors = new ArrayList<BeanFactoryPostProcessor>();
 		List<String> orderedPostProcessorNames = new ArrayList<String>();
 		List<String> nonOrderedPostProcessorNames = new ArrayList<String>();
@@ -502,6 +501,7 @@
 			DefaultListableBeanFactory beanFactory = new DefaultListableBeanFactory(getParent() !=
null ? getParent().getBeanFactory() : null);
             beanFactory.setAllowBeanDefinitionOverriding(true);
             beanFactory.setAllowCircularReferences(true);
+            beanFactory.setAllowEagerClassLoading(false);
 			loadBeanDefinitions(beanFactory);
 
 			synchronized (beanFactoryMonitor) {



Mime
View raw message