Use the RootDObjectManager interface instead of the concrete class as
PresentsDObjectMgr references InvocationManager. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5172 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -44,6 +44,7 @@ import com.threerings.presents.dobj.DObject;
|
|||||||
import com.threerings.presents.dobj.EventListener;
|
import com.threerings.presents.dobj.EventListener;
|
||||||
import com.threerings.presents.dobj.InvocationRequestEvent;
|
import com.threerings.presents.dobj.InvocationRequestEvent;
|
||||||
import com.threerings.presents.dobj.ObjectAccessException;
|
import com.threerings.presents.dobj.ObjectAccessException;
|
||||||
|
import com.threerings.presents.dobj.RootDObjectManager;
|
||||||
|
|
||||||
import com.threerings.presents.net.Transport;
|
import com.threerings.presents.net.Transport;
|
||||||
|
|
||||||
@@ -75,7 +76,7 @@ public class InvocationManager
|
|||||||
* operate its invocation services. Generally only one invocation manager should be operational
|
* operate its invocation services. Generally only one invocation manager should be operational
|
||||||
* in a particular system.
|
* in a particular system.
|
||||||
*/
|
*/
|
||||||
@Inject public InvocationManager (PresentsDObjectMgr omgr)
|
@Inject public InvocationManager (RootDObjectManager omgr)
|
||||||
{
|
{
|
||||||
_omgr = omgr;
|
_omgr = omgr;
|
||||||
|
|
||||||
@@ -312,8 +313,8 @@ public class InvocationManager
|
|||||||
/** Used to generate monotonically increasing provider ids. */
|
/** Used to generate monotonically increasing provider ids. */
|
||||||
protected int _invCode;
|
protected int _invCode;
|
||||||
|
|
||||||
/** The distribted object manager we're working with. */
|
/** The distributed object manager we're working with. */
|
||||||
protected PresentsDObjectMgr _omgr;
|
protected RootDObjectManager _omgr;
|
||||||
|
|
||||||
/** A table of invocation dispatchers each mapped by a unique code. */
|
/** A table of invocation dispatchers each mapped by a unique code. */
|
||||||
protected IntMap<InvocationDispatcher> _dispatchers = IntMaps.newHashIntMap();
|
protected IntMap<InvocationDispatcher> _dispatchers = IntMaps.newHashIntMap();
|
||||||
|
|||||||
Reference in New Issue
Block a user