Extract BodyObject location into a separate service that can be customized by

extending systems and depended upon by services that need to lookup bodies.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5212 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2008-06-29 14:11:42 +00:00
parent f043a81ee4
commit 6a9723fb11
5 changed files with 75 additions and 54 deletions
@@ -36,7 +36,6 @@ import com.threerings.presents.server.InvocationException;
import com.threerings.presents.server.InvocationManager;
import com.threerings.presents.server.ShutdownManager;
import com.threerings.crowd.data.CrowdCodes;
import com.threerings.crowd.data.Place;
import com.threerings.crowd.data.PlaceConfig;
import com.threerings.crowd.data.PlaceObject;
@@ -202,7 +201,7 @@ public class PlaceRegistry
}
// let the pmgr know about us and its configuration
pmgr.init(this, _invmgr, _omgr, config);
pmgr.init(this, _invmgr, _omgr, _locator, config);
} catch (Exception e) {
log.warning(e);
@@ -274,6 +273,9 @@ public class PlaceRegistry
/** The distributed object manager with which we operate. */
@Inject protected RootDObjectManager _omgr;
/** Used to look body objects up by name. */
@Inject protected BodyLocator _locator;
/** We use this to inject dependencies into place managers that we create. */
protected Injector _injector;