]> git.dolda2000.com Git - jsvc.git/commitdiff
Made the server context config more secure.
authorFredrik Tolf <fredrik@dolda2000.com>
Thu, 15 Oct 2009 05:07:23 +0000 (07:07 +0200)
committerFredrik Tolf <fredrik@dolda2000.com>
Thu, 15 Oct 2009 05:07:23 +0000 (07:07 +0200)
src/dolda/jsvc/ServerContext.java
src/dolda/jsvc/j2ee/J2eeContext.java

index 9fd785abf09bcc95c06517a6018f75211437237d..81cb4cd6416f23a626dd9cbd9c045882eb64359a 100644 (file)
@@ -2,5 +2,5 @@ package dolda.jsvc;
 
 public interface ServerContext {
     public long starttime();
-    public java.util.Properties config();
+    public String config(String key);
 }
index c6e09dfaf524f7e84853cd5622b9d387082c5063..5049d266d5e5d36c6221e0bd5d9f35ab71fad054 100644 (file)
@@ -53,8 +53,8 @@ public class J2eeContext implements ServerContext {
        return(ctime);
     }
     
-    public Properties config() {
-       return(config);
+    public String config(String key) {
+       return((String)config.get(key));
     }
     
     public ServletConfig j2eeconfig() {