Added experimental support for app.modules to act as module registry.

This commit is contained in:
hns 2003-03-06 17:21:49 +00:00
parent f69832309d
commit 1fa508dd27
2 changed files with 17 additions and 11 deletions

View file

@ -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<extensions.size(); i++) {

View file

@ -127,6 +127,10 @@ public class ApplicationBean implements Serializable {
return app.getCacheNode ();
}
public Map getmodules() {
return app.modules;
}
public String getdir () {
return app.getAppDir ().getAbsolutePath ();
}