Let's call it addDispatcher() to distinguish it from InvocationManager's
registerDispatcher() which requires a corresponding call to clearDispatcher(). git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5739 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -261,7 +261,7 @@ public class PlaceManager
|
||||
// to speak in this place
|
||||
if (shouldCreateSpeakService()) {
|
||||
plobj.setSpeakService(
|
||||
registerDispatcher(new SpeakDispatcher(new SpeakHandler(plobj, this))));
|
||||
addDispatcher(new SpeakDispatcher(new SpeakHandler(plobj, this))));
|
||||
}
|
||||
|
||||
// we'll need to hear about place object events
|
||||
@@ -562,7 +562,7 @@ public class PlaceManager
|
||||
* Registers an invocation dispatcher and notes the registration such that it will be
|
||||
* automatically cleared when this manager shuts down.
|
||||
*/
|
||||
protected <T extends InvocationMarshaller> T registerDispatcher (InvocationDispatcher<T> disp)
|
||||
protected <T extends InvocationMarshaller> T addDispatcher (InvocationDispatcher<T> disp)
|
||||
{
|
||||
T marsh = _invmgr.registerDispatcher(disp);
|
||||
_marshallers.add(marsh);
|
||||
@@ -788,7 +788,7 @@ public class PlaceManager
|
||||
/** A list of the delegates in use by this manager. */
|
||||
protected List<PlaceManagerDelegate> _delegates;
|
||||
|
||||
/** A list of services registered with {@link #registerDispatcher} which will be automatically
|
||||
/** A list of services registered with {@link #addDispatcher} which will be automatically
|
||||
* cleared when this manager shuts down. */
|
||||
protected List<InvocationMarshaller> _marshallers = Lists.newArrayList();
|
||||
|
||||
|
||||
@@ -114,7 +114,7 @@ public class PlaceManagerDelegate
|
||||
* 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)
|
||||
protected <T extends InvocationMarshaller> T addDispatcher (InvocationDispatcher<T> disp)
|
||||
{
|
||||
return _plmgr.registerDispatcher(disp);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user