From: <bra...@us...> - 2007-07-19 20:55:40
|
Revision: 1819 http://archive-access.svn.sourceforge.net/archive-access/?rev=1819&view=rev Author: bradtofel Date: 2007-07-19 13:55:41 -0700 (Thu, 19 Jul 2007) Log Message: ----------- FEATURE: now instantiates all singletons at startup. This may prove to be a performance hit that we're not happy with. Modified Paths: -------------- trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/webapp/RequestMapper.java Modified: trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/webapp/RequestMapper.java =================================================================== --- trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/webapp/RequestMapper.java 2007-07-19 20:54:25 UTC (rev 1818) +++ trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/webapp/RequestMapper.java 2007-07-19 20:55:41 UTC (rev 1819) @@ -30,7 +30,6 @@ import javax.servlet.http.HttpServletRequest; import org.archive.wayback.exception.ConfigurationException; -import org.springframework.beans.factory.BeanFactory; import org.springframework.beans.factory.xml.XmlBeanFactory; import org.springframework.core.io.FileSystemResource; import org.springframework.core.io.Resource; @@ -56,7 +55,7 @@ // private WaybackContext defaultContext = null; // private ServletContext servletContext = null; - private BeanFactory factory = null; + private XmlBeanFactory factory = null; /** * @param configPath * @param servletContext @@ -73,6 +72,7 @@ String resolvedPath = servletContext.getRealPath(configPath); Resource resource = new FileSystemResource(resolvedPath); factory = new XmlBeanFactory(resource); + factory.preInstantiateSingletons(); } private String getContextID(HttpServletRequest request) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |