From fa8ee9f8f8d520ad859614e0cc01969bacd66433 Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Thu, 7 Jul 2005 18:46:38 +0000 Subject: [PATCH] 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 --- .../presents/server/ClientResolver.java | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/java/com/threerings/presents/server/ClientResolver.java b/src/java/com/threerings/presents/server/ClientResolver.java index e49b8d628..738d21817 100644 --- a/src/java/com/threerings/presents/server/ClientResolver.java +++ b/src/java/com/threerings/presents/server/ClientResolver.java @@ -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 // Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved @@ -114,6 +114,9 @@ public class ClientResolver extends Invoker.Unit reportFailure(_failure); } else { + // do more resolution goodness on the dobj thread + finishResolution(_clobj); + // otherwise let the client manager know that we're all clear PresentsServer.clmgr.mapClientObject(_username, _clobj); @@ -155,6 +158,16 @@ public class ClientResolver extends Invoker.Unit // 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. */