[cvs] expresso commit by lhamel: call getinstance w/i static contexts

JCorporate Ltd jcorp at jcorporate.com
Sun Feb 20 05:21:36 UTC 2005


Log Message:
-----------
call getinstance w/i static contexts

Modified Files:
--------------
    expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/cache:
        CacheManager.java

Revision Data
-------------
Index: CacheManager.java
===================================================================
RCS file: /home/javacorp/.cvs/expresso/expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/cache/CacheManager.java,v
retrieving revision 1.32
retrieving revision 1.33
diff -Lexpresso-web/WEB-INF/src/com/jcorporate/expresso/core/cache/CacheManager.java -Lexpresso-web/WEB-INF/src/com/jcorporate/expresso/core/cache/CacheManager.java -u -r1.32 -r1.33
--- expresso-web/WEB-INF/src/com/jcorporate/expresso/core/cache/CacheManager.java
+++ expresso-web/WEB-INF/src/com/jcorporate/expresso/core/cache/CacheManager.java
@@ -125,8 +125,6 @@
      * it will eventually become protected
      */
     public CacheManager() {
-        super();
-
         runtimeInitialized = (ExpressoRuntimeMap.getDefaultRuntime() != null);
 
         if (!runtimeInitialized) {
@@ -179,6 +177,7 @@
             dataContext = "default";
         }
 
+        getInstance(); // make sure initialized
         if (CacheManager.runtimeInitialized) {
             LocatorUtils lc = new LocatorUtils(ExpressoRuntimeMap.getDefaultRuntime());
             return (CacheSystem) lc.locateComponent(dataContext + ".Cache");


More information about the cvs mailing list