From 398ee3cfa22653cc9627893112ce9d4cc0fcc58e Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Mon, 20 Apr 2009 17:53:24 +0000 Subject: [PATCH] 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 --- .../threerings/crowd/server/PlaceManagerDelegate.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/java/com/threerings/crowd/server/PlaceManagerDelegate.java b/src/java/com/threerings/crowd/server/PlaceManagerDelegate.java index d94f580d1..26dfdd2ca 100644 --- a/src/java/com/threerings/crowd/server/PlaceManagerDelegate.java +++ b/src/java/com/threerings/crowd/server/PlaceManagerDelegate.java @@ -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 registerDispatcher (InvocationDispatcher disp) + { + return _plmgr.registerDispatcher(disp); + } + /** A reference to the manager for which we are delegating. */ protected PlaceManager _plmgr;