From 1fa508dd27784ea18916949cfea7c21ce164d37e Mon Sep 17 00:00:00 2001 From: hns Date: Thu, 6 Mar 2003 17:21:49 +0000 Subject: [PATCH] Added experimental support for app.modules to act as module registry. --- src/helma/framework/core/Application.java | 20 ++++++++++--------- src/helma/framework/core/ApplicationBean.java | 8 ++++++-- 2 files changed, 17 insertions(+), 11 deletions(-) diff --git a/src/helma/framework/core/Application.java b/src/helma/framework/core/Application.java index ebe228f0..1088bd3a 100644 --- a/src/helma/framework/core/Application.java +++ b/src/helma/framework/core/Application.java @@ -73,6 +73,9 @@ public final class Application implements IPathElement, Runnable { Hashtable sessions; Hashtable dbSources; + // map of app modules reflected at app.modules + Hashtable modules; + // internal worker thread for scheduler, session cleanup etc. Thread worker; long requestTimeout = 60000; // 60 seconds for request timeout. @@ -207,6 +210,7 @@ public final class Application implements IPathElement, Runnable { sessions = new Hashtable (); dbSources = new Hashtable (); + modules = new Hashtable (); cachenode = new TransientNode ("app"); } @@ -215,8 +219,6 @@ public final class Application implements IPathElement, Runnable { * Get the application ready to run, initializing the evaluators and type manager. */ public void init () throws DatabaseException, ScriptingException, MalformedURLException { - // scriptingEngine = new helma.scripting.fesi.FesiScriptingEnvironment (); - // scriptingEngine.init (this, props); Vector extensions = Server.getServer ().getExtensions (); for (int i=0; i