The rabbit hole goes deeper. Now we can configure the client with a custom
classloader to use when unserializing objects off the network. Also fixed the way custom classloaders were used as Class.forName(class, true, loader) seems to be the proper way to go to have caching work and whatnot. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3268 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -114,7 +114,8 @@ public class PlaceRegistry
|
||||
|
||||
try {
|
||||
// load up the manager class
|
||||
Class pmgrClass = loader.loadClass(config.getManagerClassName());
|
||||
Class pmgrClass = Class.forName(
|
||||
config.getManagerClassName(), true, loader);
|
||||
// create a place manager for this place
|
||||
pmgr = (PlaceManager)pmgrClass.newInstance();
|
||||
// let the pmgr know about us and its configuration
|
||||
|
||||
Reference in New Issue
Block a user