* Implement app.getAppsProperties() to return the subset of

apps.properties relevant to the current application.
This commit is contained in:
hns 2007-03-15 16:23:22 +00:00
parent 4494d0bff5
commit e9cf02914c

View file

@ -22,6 +22,7 @@ import helma.util.CronJob;
import helma.util.SystemMap;
import helma.util.WrappedMap;
import helma.framework.repository.*;
import helma.main.Server;
import java.io.File;
import java.io.Serializable;
@ -491,6 +492,18 @@ public class ApplicationBean implements Serializable {
return app.getDbSource(name);
}
/**
* Get a wrapper around the app's apps.properties
*
* @return a readonly wrapper around the application's apps.properties
*/
public Map getAppsProperties() {
Server server = Server.getServer();
if (server == null)
return new SystemMap();
return new WrappedMap(server.getAppsProperties(app.getName()), true);
}
/**
* Get an array of this app's prototypes
*