Grant handy automatic invocation service clearing to place manager delegates.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5738 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2009-04-20 17:53:24 +00:00
parent 1eefc50828
commit 398ee3cfa2
@@ -21,7 +21,9 @@
package com.threerings.crowd.server;
import com.threerings.presents.data.InvocationMarshaller;
import com.threerings.presents.dobj.RootDObjectManager;
import com.threerings.presents.server.InvocationDispatcher;
import com.threerings.presents.server.InvocationManager;
import com.threerings.crowd.data.OccupantInfo;
@@ -108,6 +110,15 @@ public class PlaceManagerDelegate
return _plmgr.where();
}
/**
* Registers an invocation dispatcher and notes the registration such that it will be
* automatically cleared when our parent manager shuts down.
*/
protected <T extends InvocationMarshaller> T registerDispatcher (InvocationDispatcher<T> disp)
{
return _plmgr.registerDispatcher(disp);
}
/** A reference to the manager for which we are delegating. */
protected PlaceManager _plmgr;