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:
@@ -158,11 +158,16 @@ public class SceneManager extends PlaceManager
|
|||||||
|
|
||||||
// and apply and store it in the repository
|
// and apply and store it in the repository
|
||||||
if (isPersistent()) {
|
if (isPersistent()) {
|
||||||
_invoker.postUnit(new WriteOnlyUnit("recordUpdate(" + update + ")") {
|
_invoker.postUnit(new WriteOnlyUnit("recordUpdate") {
|
||||||
@Override
|
@Override
|
||||||
public void invokePersist () throws Exception {
|
public void invokePersist () throws Exception {
|
||||||
_screg.getSceneRepository().applyAndRecordUpdate(_scene.getSceneModel(), update);
|
_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
|
// otherwise we have to load the scene from the repository
|
||||||
final int fsceneId = sceneId;
|
final int fsceneId = sceneId;
|
||||||
_invoker.postUnit(new RepositoryUnit("resolveScene(" + sceneId + ")") {
|
_invoker.postUnit(new RepositoryUnit("resolveScene") {
|
||||||
@Override
|
@Override
|
||||||
public void invokePersist () throws Exception {
|
public void invokePersist () throws Exception {
|
||||||
_model = _screp.loadSceneModel(fsceneId);
|
_model = _screp.loadSceneModel(fsceneId);
|
||||||
@@ -180,6 +180,11 @@ public class SceneRegistry
|
|||||||
public void handleFailure (Exception error) {
|
public void handleFailure (Exception error) {
|
||||||
processFailedResolution(fsceneId, error);
|
processFailedResolution(fsceneId, error);
|
||||||
}
|
}
|
||||||
|
@Override
|
||||||
|
public String getDetail ()
|
||||||
|
{
|
||||||
|
return "" + fsceneId;
|
||||||
|
}
|
||||||
protected SceneModel _model;
|
protected SceneModel _model;
|
||||||
protected UpdateList _updates;
|
protected UpdateList _updates;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user