You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by jd...@apache.org on 2008/10/12 14:18:02 UTC
svn commit: r703805 -
/geronimo/gshell/trunk/gshell-support/gshell-spring/src/main/java/org/apache/geronimo/gshell/spring/BeanContainerContextImpl.java
Author: jdillon
Date: Sun Oct 12 05:18:02 2008
New Revision: 703805
URL: http://svn.apache.org/viewvc?rev=703805&view=rev
Log:
Add timings
Modified:
geronimo/gshell/trunk/gshell-support/gshell-spring/src/main/java/org/apache/geronimo/gshell/spring/BeanContainerContextImpl.java
Modified: geronimo/gshell/trunk/gshell-support/gshell-spring/src/main/java/org/apache/geronimo/gshell/spring/BeanContainerContextImpl.java
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-support/gshell-spring/src/main/java/org/apache/geronimo/gshell/spring/BeanContainerContextImpl.java?rev=703805&r1=703804&r2=703805&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-support/gshell-spring/src/main/java/org/apache/geronimo/gshell/spring/BeanContainerContextImpl.java (original)
+++ geronimo/gshell/trunk/gshell-support/gshell-spring/src/main/java/org/apache/geronimo/gshell/spring/BeanContainerContextImpl.java Sun Oct 12 05:18:02 2008
@@ -26,6 +26,7 @@
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;
import org.springframework.core.io.Resource;
+import org.apache.geronimo.gshell.chronos.StopWatch;
import java.io.IOException;
import java.util.ArrayList;
@@ -58,7 +59,9 @@
public void configure(final String[] locations) {
assert locations != null;
- log.debug("Configuring with locations: {}", Arrays.asList(locations));
+ StopWatch watch = new StopWatch(true);
+
+ log.debug("Configuring with locations: {}", locations);
for (String location : locations) {
Resource[] resources;
@@ -77,6 +80,8 @@
// Track which resources we own
this.resources.addAll(Arrays.asList(resources));
}
+
+ log.debug("Configured {} resources in: {}", resources.size(), watch);
}
/**