Changeset 5321
- Timestamp:
- 08/27/10 10:57:34 (18 months ago)
- Location:
- branches/release-0.13.x/pfixcore/src
- Files:
-
- 2 modified
-
de/schlund/pfixxml/config/GlobalConfig.java (modified) (1 diff)
-
org/pustefixframework/http/internal/FactoryInitWorker.java (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/release-0.13.x/pfixcore/src/de/schlund/pfixxml/config/GlobalConfig.java
r4642 r5321 55 55 static void setDocroot(String path) { 56 56 if (docroot != null || servletContext != null) { 57 if(docroot.equals(path)) return; 57 58 throw new IllegalStateException("Docroot or servlet context may only be set once!"); 58 59 } -
branches/release-0.13.x/pfixcore/src/org/pustefixframework/http/internal/FactoryInitWorker.java
r5179 r5321 99 99 100 100 private final static Object initLock = new Object(); 101 private static boolean init Running= false;101 private static boolean initialized = false; 102 102 103 103 public static void tryReloadLog4j() { … … 128 128 public static void init(ServletContext servletContext) throws ServletException { 129 129 synchronized (initLock) { 130 if (!initRunning) { 131 initRunning = true; 130 if (!initialized) { 132 131 (new FactoryInitWorker()).doInit(servletContext); 132 initialized = true; 133 133 } 134 134 }
