Added finishResolution(), which is called on the dobj thread to finish up
population of the client object. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3645 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: ClientResolver.java,v 1.7 2004/08/27 02:20:23 mdb Exp $
|
// $Id$
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
||||||
@@ -114,6 +114,9 @@ public class ClientResolver extends Invoker.Unit
|
|||||||
reportFailure(_failure);
|
reportFailure(_failure);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
// do more resolution goodness on the dobj thread
|
||||||
|
finishResolution(_clobj);
|
||||||
|
|
||||||
// otherwise let the client manager know that we're all clear
|
// otherwise let the client manager know that we're all clear
|
||||||
PresentsServer.clmgr.mapClientObject(_username, _clobj);
|
PresentsServer.clmgr.mapClientObject(_username, _clobj);
|
||||||
|
|
||||||
@@ -155,6 +158,16 @@ public class ClientResolver extends Invoker.Unit
|
|||||||
// nothing to do by default
|
// nothing to do by default
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method is called on the dobj thread after resolveClientData
|
||||||
|
* returns normally, it should finish populating the client object
|
||||||
|
* with any data that is NOT loaded from a database.
|
||||||
|
*/
|
||||||
|
protected void finishResolution (ClientObject clobj)
|
||||||
|
{
|
||||||
|
// nothing to do by default
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reports failure to our resolution listeners.
|
* Reports failure to our resolution listeners.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user