Changed initialization mode of Database extension
for the RequestEvaluator must be able to call setApplication() on it.
This commit is contained in:
parent
0b648a3830
commit
322c0b80ac
1 changed files with 2 additions and 1 deletions
|
@ -66,7 +66,6 @@ public class RequestEvaluator implements Runnable {
|
||||||
"helma.xmlrpc.fesi.FesiRpcExtension",
|
"helma.xmlrpc.fesi.FesiRpcExtension",
|
||||||
"helma.framework.extensions.ImageExtension",
|
"helma.framework.extensions.ImageExtension",
|
||||||
"helma.framework.extensions.FtpExtension",
|
"helma.framework.extensions.FtpExtension",
|
||||||
"helma.framework.extensions.Database",
|
|
||||||
"FESI.Extensions.JavaAccess",
|
"FESI.Extensions.JavaAccess",
|
||||||
"FESI.Extensions.OptionalRegExp"};
|
"FESI.Extensions.OptionalRegExp"};
|
||||||
|
|
||||||
|
@ -105,6 +104,8 @@ public class RequestEvaluator implements Runnable {
|
||||||
hopx.initializeExtension (this);
|
hopx.initializeExtension (this);
|
||||||
mailx = (MailExtension) evaluator.addExtension ("helma.framework.extensions.MailExtension");
|
mailx = (MailExtension) evaluator.addExtension ("helma.framework.extensions.MailExtension");
|
||||||
mailx.setProperties (this.app.props);
|
mailx.setProperties (this.app.props);
|
||||||
|
Database dbx = (Database) evaluator.addExtension ("helma.framework.extensions.Database");
|
||||||
|
dbx.setApplication (this.app);
|
||||||
|
|
||||||
// fake a cache member like the one found in ESNodes
|
// fake a cache member like the one found in ESNodes
|
||||||
global.putHiddenProperty ("cache", new ESNode (new Node ("cache"), this));
|
global.putHiddenProperty ("cache", new ESNode (new Node ("cache"), this));
|
||||||
|
|
Loading…
Add table
Reference in a new issue