From 0096257d7573c7cba3563f8cbbdabecff35ef8c8 Mon Sep 17 00:00:00 2001 From: mdb Date: Thu, 4 Oct 2001 00:24:16 +0000 Subject: [PATCH] Added getProperties() which allows one to fetch the properties object associated with a particular namespace identifier. git-svn-id: https://samskivert.googlecode.com/svn/trunk@344 6335cc39-0255-0410-8fd6-9bcaacd3b74c --- .../src/java/com/samskivert/util/Config.java | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/projects/samskivert/src/java/com/samskivert/util/Config.java b/projects/samskivert/src/java/com/samskivert/util/Config.java index ff318f0e..401c1a9e 100644 --- a/projects/samskivert/src/java/com/samskivert/util/Config.java +++ b/projects/samskivert/src/java/com/samskivert/util/Config.java @@ -1,5 +1,5 @@ // -// $Id: Config.java,v 1.6 2001/08/29 18:40:26 shaper Exp $ +// $Id: Config.java,v 1.7 2001/10/04 00:24:16 mdb Exp $ // // samskivert library - useful routines for java programs // Copyright (C) 2001 Michael Bayne @@ -265,6 +265,19 @@ public class Config return Class.forName(getValue(name, defcname)).newInstance(); } + /** + * Returns the entire properties instance bound to a particular + * namespace identifier. + * + * @return a properties instance that was bound to the specified + * namespace identifier or null if nothing is bound to that + * identifier. + */ + public Properties getProperties (String name) + { + return (Properties)_props.get(name); + } + /** * Returns an iterator that returns all of the configuration keys that * match the specified prefix. The prefix should at least contain a