* Implement app.getAppsProperties() to return the subset of
apps.properties relevant to the current application.
This commit is contained in:
parent
e4784f870d
commit
de09d0aac9
1 changed files with 13 additions and 6 deletions
|
@ -809,23 +809,30 @@ public class Server implements Runnable {
|
|||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @return ...
|
||||
* Return the server.properties for this server
|
||||
* @return the server.properties
|
||||
*/
|
||||
public ResourceProperties getProperties() {
|
||||
return sysProps;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @return ...
|
||||
* Return the server-wide db.properties
|
||||
* @return the server-wide db.properties
|
||||
*/
|
||||
public ResourceProperties getDbProperties() {
|
||||
return dbProps;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the apps.properties entries for a given application
|
||||
* @param appName the app name
|
||||
* @return the apps.properties subproperties for the given app
|
||||
*/
|
||||
public ResourceProperties getAppsProperties(String appName) {
|
||||
return appsProps.getSubProperties(appName + ".");
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue