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
This commit is contained in:
mdb
2001-10-04 00:24:16 +00:00
parent bc718ddb13
commit 0096257d75
@@ -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