From 1f6f8edeb92822cf225b2cfd134141565768b67b Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Fri, 13 Feb 2009 03:08:01 +0000 Subject: [PATCH] Allow custom BodyLocators to be provided to different PlaceManagers. Twisty maze of passages! git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5655 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../com/threerings/crowd/server/PlaceRegistry.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/java/com/threerings/crowd/server/PlaceRegistry.java b/src/java/com/threerings/crowd/server/PlaceRegistry.java index 8bb0822e6..90853fb11 100644 --- a/src/java/com/threerings/crowd/server/PlaceRegistry.java +++ b/src/java/com/threerings/crowd/server/PlaceRegistry.java @@ -192,7 +192,7 @@ public class PlaceRegistry } // let the pmgr know about us and its configuration - pmgr.init(this, _invmgr, _omgr, _locator, config); + pmgr.init(this, _invmgr, _omgr, selectLocator(config), config); } catch (Exception e) { log.warning(e); @@ -242,6 +242,14 @@ public class PlaceRegistry return _injector.getInstance(clazz); } + /** + * Selects the body locator to be used by the PlaceManager created for the supplied config. + */ + protected BodyLocator selectLocator (PlaceConfig config) + { + return _locator; + } + /** * Called by the place manager when it has been shut down. */