Yet more MisoUtil pruning.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@670 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: MisoUtil.java,v 1.15 2001/11/18 04:09:23 mdb Exp $
|
||||
// $Id: MisoUtil.java,v 1.16 2001/11/29 00:19:03 mdb Exp $
|
||||
|
||||
package com.threerings.miso.util;
|
||||
|
||||
@@ -26,39 +26,4 @@ public class MisoUtil
|
||||
{
|
||||
config.bindProperties(CONFIG_KEY, "rsrc/config/miso/miso");
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a <code>Config</code> object that contains
|
||||
* configuration parameters for miso.
|
||||
*/
|
||||
public static Config createConfig ()
|
||||
{
|
||||
return createConfig(null, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a <code>Config</code> object that contains
|
||||
* configuration parameters for miso. If <code>key</code> and
|
||||
* <code>path</code> are non-<code>null</code>, the properties in
|
||||
* the given file will additionally be bound to the specified
|
||||
* config key namespace.
|
||||
*/
|
||||
public static Config createConfig (String key, String path)
|
||||
{
|
||||
Config config = new Config();
|
||||
try {
|
||||
// load the miso config info
|
||||
bindProperties(config);
|
||||
|
||||
if (key != null && path != null) {
|
||||
// load the application-specific config info
|
||||
config.bindProperties(key, path);
|
||||
}
|
||||
|
||||
} catch (IOException ioe) {
|
||||
Log.warning("Error loading config information [e=" + ioe + "].");
|
||||
}
|
||||
|
||||
return config;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user