* Implement getDbProperties() for db.properties introspection.

* Implement getDbSource().
This commit is contained in:
hns 2005-11-07 14:42:46 +00:00
parent 61f9b6476e
commit d8a508c55e

View file

@ -17,6 +17,7 @@
package helma.framework.core;
import helma.objectmodel.INode;
import helma.objectmodel.db.DbSource;
import helma.util.CronJob;
import helma.util.SystemMap;
import helma.util.WrappedMap;
@ -391,9 +392,9 @@ public class ApplicationBean implements Serializable {
}
/**
* Get a wrapper around the app's properties
*
*
* @return ...
* @return a readonly wrapper around the application's app properties
*/
public Map getProperties() {
if (properties == null) {
@ -402,6 +403,22 @@ public class ApplicationBean implements Serializable {
return properties;
}
/**
* Get a wrapper around the app's db properties
*
* @return a readonly wrapper around the application's db properties
*/
public Map getDbProperties() {
return new WrappedMap(app.getDbProperties(), true);
}
/**
* Return a DbSource object for a given name.
*/
public DbSource getDbSource(String name) {
return app.getDbSource(name);
}
/**
*
*