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:
@@ -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
|
// samskivert library - useful routines for java programs
|
||||||
// Copyright (C) 2001 Michael Bayne
|
// Copyright (C) 2001 Michael Bayne
|
||||||
@@ -265,6 +265,19 @@ public class Config
|
|||||||
return Class.forName(getValue(name, defcname)).newInstance();
|
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
|
* Returns an iterator that returns all of the configuration keys that
|
||||||
* match the specified prefix. The prefix should at least contain a
|
* match the specified prefix. The prefix should at least contain a
|
||||||
|
|||||||
Reference in New Issue
Block a user