Revamp! Modified the way configuration is handled.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1166 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,18 +1,19 @@
|
||||
//
|
||||
// $Id: MisoContext.java,v 1.7 2001/11/18 04:09:23 mdb Exp $
|
||||
// $Id: MisoContext.java,v 1.8 2002/03/28 22:32:32 mdb Exp $
|
||||
|
||||
package com.threerings.miso.util;
|
||||
|
||||
import com.samskivert.util.Context;
|
||||
|
||||
import com.threerings.media.ImageManager;
|
||||
import com.threerings.media.tile.TileManager;
|
||||
|
||||
public interface MisoContext extends Context
|
||||
/**
|
||||
* Provides Miso code with access to the managers that it needs to do its
|
||||
* thing.
|
||||
*/
|
||||
public interface MisoContext
|
||||
{
|
||||
/**
|
||||
* Returns a reference to the tile manager. This reference is
|
||||
* valid for the lifetime of the application.
|
||||
* Returns a reference to the tile manager. This reference is valid
|
||||
* for the lifetime of the application.
|
||||
*/
|
||||
public TileManager getTileManager ();
|
||||
}
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
//
|
||||
// $Id: MisoUtil.java,v 1.16 2001/11/29 00:19:03 mdb Exp $
|
||||
|
||||
package com.threerings.miso.util;
|
||||
|
||||
import java.io.IOException;
|
||||
import com.samskivert.util.Config;
|
||||
import com.threerings.miso.Log;
|
||||
|
||||
/**
|
||||
* The miso util class provides miscellaneous routines for
|
||||
* applications or other layers that intend to make use of Miso
|
||||
* services.
|
||||
*/
|
||||
public class MisoUtil
|
||||
{
|
||||
/** The config key prefix for miso properties. */
|
||||
public static final String CONFIG_KEY = "miso";
|
||||
|
||||
/**
|
||||
* Populates the config object with miso configuration values.
|
||||
*
|
||||
* @param config the <code>Config</code> object to populate.
|
||||
*/
|
||||
public static void bindProperties (Config config) throws IOException
|
||||
{
|
||||
config.bindProperties(CONFIG_KEY, "rsrc/config/miso/miso");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user