Skip to content

Commit

Permalink
minor. move conversation context activation in phase listener
Browse files Browse the repository at this point in the history
git-svn-id: http://anonsvn.jboss.org/repos/weld/ri/trunk@1791 1c488680-804c-0410-94cd-c6b725194a0e
  • Loading branch information
nickarls committed Mar 6, 2009
1 parent a628b3c commit ef558fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
Expand Up @@ -122,7 +122,7 @@ public void beginOrRestoreConversation(String cid)
// We got an incoming conversation ID but it was not in the map of
// known ones, nothing to do. Log and return to continue with a
// transient conversation
log.info("Could not restore long-running conversation " + cid);
log.warn("Could not restore long-running conversation " + cid);
return;
}
ConversationEntry resumedConversationEntry = longRunningConversations.get(cid);
Expand Down
Expand Up @@ -53,10 +53,6 @@ public void beforePhase(PhaseEvent phaseEvent)
{
beforeRenderReponse();
}
else if (phaseEvent.getPhaseId().equals(PhaseId.APPLY_REQUEST_VALUES))
{
beforeApplyRequestValues();
}
}

/**
Expand All @@ -76,15 +72,6 @@ private void beforeRenderReponse()
}
}

/**
* Run before request values are applied
*/
private void beforeApplyRequestValues()
{
log.trace("In before apply values phase");
ConversationContext.INSTANCE.setActive(true);
}

/**
* Run after a given phase
*
Expand Down Expand Up @@ -113,6 +100,7 @@ private void afterRestoreView()
CurrentManager.rootManager().getInstanceByType(ConversationManager.class).beginOrRestoreConversation(PhaseHelper.getConversationId());
String cid = CurrentManager.rootManager().getInstanceByType(Conversation.class).getId();
ConversationContext.INSTANCE.setBeanStore(new ConversationBeanStore(session, cid));
ConversationContext.INSTANCE.setActive(true);
}

/**
Expand Down

0 comments on commit ef558fc

Please sign in to comment.