From de09d0aac96310c5ad6670801eb6632597874055 Mon Sep 17 00:00:00 2001 From: hns Date: Thu, 15 Mar 2007 17:16:32 +0000 Subject: [PATCH] * Implement app.getAppsProperties() to return the subset of apps.properties relevant to the current application. --- src/helma/main/Server.java | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/src/helma/main/Server.java b/src/helma/main/Server.java index 58bd3061..f5d36f7e 100644 --- a/src/helma/main/Server.java +++ b/src/helma/main/Server.java @@ -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 + "."); + } + /** * *