You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by simon <sk...@apache.org> on 2007/10/04 22:45:50 UTC

[orchestra] ConversationContext.removeConversation

Hi,

We have this method in ConversationContext:

/**
 * Remove the conversation from this context.
 * 
 * <p>Notice: It is assumed that the conversation has already been
invalidated.</p>
 */
protected void removeConversation(Conversation conversation)
{
	synchronized (this)
	{
		touch();
		conversations.remove(conversation.getName());
	}
}

If the conversation is assumed to be invalidated, then perhaps we should
check, and throw an exception if it is not? What do you think?

It is currently called only from the Conversation.destroy() method and
ConversationManager.removeConversation. In the first case, the
conversation is definitely invalidated. In the second, there do not
appear to be any existing callers of that method.

Regards, Simon