Added experimental support for app.modules to act as module registry.
This commit is contained in:
parent
f69832309d
commit
1fa508dd27
2 changed files with 17 additions and 11 deletions
|
@ -73,6 +73,9 @@ public final class Application implements IPathElement, Runnable {
|
||||||
Hashtable sessions;
|
Hashtable sessions;
|
||||||
Hashtable dbSources;
|
Hashtable dbSources;
|
||||||
|
|
||||||
|
// map of app modules reflected at app.modules
|
||||||
|
Hashtable modules;
|
||||||
|
|
||||||
// internal worker thread for scheduler, session cleanup etc.
|
// internal worker thread for scheduler, session cleanup etc.
|
||||||
Thread worker;
|
Thread worker;
|
||||||
long requestTimeout = 60000; // 60 seconds for request timeout.
|
long requestTimeout = 60000; // 60 seconds for request timeout.
|
||||||
|
@ -207,6 +210,7 @@ public final class Application implements IPathElement, Runnable {
|
||||||
|
|
||||||
sessions = new Hashtable ();
|
sessions = new Hashtable ();
|
||||||
dbSources = new Hashtable ();
|
dbSources = new Hashtable ();
|
||||||
|
modules = new Hashtable ();
|
||||||
|
|
||||||
cachenode = new TransientNode ("app");
|
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.
|
* Get the application ready to run, initializing the evaluators and type manager.
|
||||||
*/
|
*/
|
||||||
public void init () throws DatabaseException, ScriptingException, MalformedURLException {
|
public void init () throws DatabaseException, ScriptingException, MalformedURLException {
|
||||||
// scriptingEngine = new helma.scripting.fesi.FesiScriptingEnvironment ();
|
|
||||||
// scriptingEngine.init (this, props);
|
|
||||||
|
|
||||||
Vector extensions = Server.getServer ().getExtensions ();
|
Vector extensions = Server.getServer ().getExtensions ();
|
||||||
for (int i=0; i<extensions.size(); i++) {
|
for (int i=0; i<extensions.size(); i++) {
|
||||||
|
|
|
@ -127,6 +127,10 @@ public class ApplicationBean implements Serializable {
|
||||||
return app.getCacheNode ();
|
return app.getCacheNode ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Map getmodules() {
|
||||||
|
return app.modules;
|
||||||
|
}
|
||||||
|
|
||||||
public String getdir () {
|
public String getdir () {
|
||||||
return app.getAppDir ().getAbsolutePath ();
|
return app.getAppDir ().getAbsolutePath ();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue