* Implement app.getAppsProperties() to return the subset of
apps.properties relevant to the current application.
This commit is contained in:
parent
4494d0bff5
commit
e9cf02914c
1 changed files with 13 additions and 0 deletions
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue