* 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 the server.properties for this server
|
||||||
*
|
* @return the server.properties
|
||||||
* @return ...
|
|
||||||
*/
|
*/
|
||||||
public ResourceProperties getProperties() {
|
public ResourceProperties getProperties() {
|
||||||
return sysProps;
|
return sysProps;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* Return the server-wide db.properties
|
||||||
*
|
* @return the server-wide db.properties
|
||||||
* @return ...
|
|
||||||
*/
|
*/
|
||||||
public ResourceProperties getDbProperties() {
|
public ResourceProperties getDbProperties() {
|
||||||
return dbProps;
|
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