Use the getDetail method for instance specific bits to keep invoker names constant

git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@739 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Charlie Groves
2008-09-11 20:51:06 +00:00
parent 36c3607585
commit 890628a5e4
2 changed files with 12 additions and 2 deletions
@@ -158,11 +158,16 @@ public class SceneManager extends PlaceManager
// and apply and store it in the repository
if (isPersistent()) {
_invoker.postUnit(new WriteOnlyUnit("recordUpdate(" + update + ")") {
_invoker.postUnit(new WriteOnlyUnit("recordUpdate") {
@Override
public void invokePersist () throws Exception {
_screg.getSceneRepository().applyAndRecordUpdate(_scene.getSceneModel(), update);
}
@Override
public String getDetail () {
return update.toString();
}
});
}
@@ -166,7 +166,7 @@ public class SceneRegistry
// otherwise we have to load the scene from the repository
final int fsceneId = sceneId;
_invoker.postUnit(new RepositoryUnit("resolveScene(" + sceneId + ")") {
_invoker.postUnit(new RepositoryUnit("resolveScene") {
@Override
public void invokePersist () throws Exception {
_model = _screp.loadSceneModel(fsceneId);
@@ -180,6 +180,11 @@ public class SceneRegistry
public void handleFailure (Exception error) {
processFailedResolution(fsceneId, error);
}
@Override
public String getDetail ()
{
return "" + fsceneId;
}
protected SceneModel _model;
protected UpdateList _updates;
});