From 38415e97cf6ba1503091956a4d849f2f4820324a Mon Sep 17 00:00:00 2001 From: Micha Kiener Date: Thu, 7 Jan 2010 08:05:21 +0000 Subject: [PATCH] SPR-6423, conversation object --- .../springframework/conversation/Conversation.java | 2 +- .../conversation/manager/ConversationImpl.java | 11 +++++++++-- .../conversation/manager/MutableConversation.java | 10 ++++++++++ 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/org.springframework.context/src/main/java/org/springframework/conversation/Conversation.java b/org.springframework.context/src/main/java/org/springframework/conversation/Conversation.java index 5f7be8bb03..84a4fc0044 100644 --- a/org.springframework.context/src/main/java/org/springframework/conversation/Conversation.java +++ b/org.springframework.context/src/main/java/org/springframework/conversation/Conversation.java @@ -186,7 +186,7 @@ public interface Conversation { * * @return true, if this is a switched conversation */ - boolean isSwtiched(); + boolean isSwitched(); /** * Returns true, if this is a nested, isolated conversation so diff --git a/org.springframework.context/src/main/java/org/springframework/conversation/manager/ConversationImpl.java b/org.springframework.context/src/main/java/org/springframework/conversation/manager/ConversationImpl.java index 9d9eee8329..c438557ab1 100644 --- a/org.springframework.context/src/main/java/org/springframework/conversation/manager/ConversationImpl.java +++ b/org.springframework.context/src/main/java/org/springframework/conversation/manager/ConversationImpl.java @@ -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; } diff --git a/org.springframework.context/src/main/java/org/springframework/conversation/manager/MutableConversation.java b/org.springframework.context/src/main/java/org/springframework/conversation/manager/MutableConversation.java index ab8b9f850c..89d164e7e1 100644 --- a/org.springframework.context/src/main/java/org/springframework/conversation/manager/MutableConversation.java +++ b/org.springframework.context/src/main/java/org/springframework/conversation/manager/MutableConversation.java @@ -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; /** *

@@ -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 true, 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. -- GitLab