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

apps.properties relevant to the current application.
This commit is contained in:
hns 2007-03-15 17:16:32 +00:00
parent e4784f870d
commit de09d0aac9

View file

@ -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 + ".");
}
/** /**
* *
* *