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