提交 38415e97 编写于 作者: M Micha Kiener

SPR-6423, conversation object

上级 5811d9e8
......@@ -186,7 +186,7 @@ public interface Conversation {
*
* @return <code>true</code>, if this is a switched conversation
*/
boolean isSwtiched();
boolean isSwitched();
/**
* Returns <code>true</code>, if this is a nested, isolated conversation so
......
......@@ -160,6 +160,13 @@ public class ConversationImpl extends DestructionAwareAttributeMap implements Mu
this.temporary = temporary;
}
/**
* @see org.springframework.conversation.manager.MutableConversation#setSwitched(boolean)
*/
public void setSwitched(boolean switched) {
this.switched = switched;
}
/**
* @see org.springframework.conversation.Conversation#begin()
*/
......@@ -347,9 +354,9 @@ public class ConversationImpl extends DestructionAwareAttributeMap implements Mu
}
/**
* @see org.springframework.conversation.Conversation#isSwtiched()
* @see org.springframework.conversation.Conversation#isSwitched()
*/
public boolean isSwtiched() {
public boolean isSwitched() {
return switched;
}
......
......@@ -19,6 +19,7 @@ import org.springframework.conversation.Conversation;
import org.springframework.conversation.ConversationActivationType;
import org.springframework.conversation.ConversationDeactivationType;
import org.springframework.conversation.ConversationEndingType;
import org.springframework.conversation.JoinMode;
/**
* <p>
......@@ -47,6 +48,15 @@ public interface MutableConversation extends Conversation {
*/
void setTemporary(boolean temporary);
/**
* Set the flag whether this conversation is a switched one or not. See
* {@link JoinMode#SWITCHED} for a detailed description about switched
* conversations.
*
* @param switched <code>true</code>, if this is a switched conversation
*/
void setSwitched(boolean switched);
/**
* Set the given conversation as the parent conversation of this one. So
* this conversation will be a nested conversation of the given parent.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册