* Implement getDbProperties() for db.properties introspection.
* Implement getDbSource().
This commit is contained in:
parent
61f9b6476e
commit
d8a508c55e
1 changed files with 19 additions and 2 deletions
|
@ -17,6 +17,7 @@
|
||||||
package helma.framework.core;
|
package helma.framework.core;
|
||||||
|
|
||||||
import helma.objectmodel.INode;
|
import helma.objectmodel.INode;
|
||||||
|
import helma.objectmodel.db.DbSource;
|
||||||
import helma.util.CronJob;
|
import helma.util.CronJob;
|
||||||
import helma.util.SystemMap;
|
import helma.util.SystemMap;
|
||||||
import helma.util.WrappedMap;
|
import helma.util.WrappedMap;
|
||||||
|
@ -391,9 +392,9 @@ public class ApplicationBean implements Serializable {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Get a wrapper around the app's properties
|
||||||
*
|
*
|
||||||
*
|
* @return a readonly wrapper around the application's app properties
|
||||||
* @return ...
|
|
||||||
*/
|
*/
|
||||||
public Map getProperties() {
|
public Map getProperties() {
|
||||||
if (properties == null) {
|
if (properties == null) {
|
||||||
|
@ -402,6 +403,22 @@ public class ApplicationBean implements Serializable {
|
||||||
return properties;
|
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);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue