Skip to content

Commit 38415e9

Browse files
author
Micha Kiener
committed
SPR-6423, conversation object
1 parent 5811d9e commit 38415e9

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

org.springframework.context/src/main/java/org/springframework/conversation/Conversation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public interface Conversation {
186186
*
187187
* @return <code>true</code>, if this is a switched conversation
188188
*/
189-
boolean isSwtiched();
189+
boolean isSwitched();
190190

191191
/**
192192
* Returns <code>true</code>, if this is a nested, isolated conversation so

org.springframework.context/src/main/java/org/springframework/conversation/manager/ConversationImpl.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,13 @@ public void setTemporary(boolean temporary) {
160160
this.temporary = temporary;
161161
}
162162

163+
/**
164+
* @see org.springframework.conversation.manager.MutableConversation#setSwitched(boolean)
165+
*/
166+
public void setSwitched(boolean switched) {
167+
this.switched = switched;
168+
}
169+
163170
/**
164171
* @see org.springframework.conversation.Conversation#begin()
165172
*/
@@ -347,9 +354,9 @@ public boolean isIsolated() {
347354
}
348355

349356
/**
350-
* @see org.springframework.conversation.Conversation#isSwtiched()
357+
* @see org.springframework.conversation.Conversation#isSwitched()
351358
*/
352-
public boolean isSwtiched() {
359+
public boolean isSwitched() {
353360
return switched;
354361
}
355362

org.springframework.context/src/main/java/org/springframework/conversation/manager/MutableConversation.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import org.springframework.conversation.ConversationActivationType;
2020
import org.springframework.conversation.ConversationDeactivationType;
2121
import org.springframework.conversation.ConversationEndingType;
22+
import org.springframework.conversation.JoinMode;
2223

2324
/**
2425
* <p>
@@ -47,6 +48,15 @@ public interface MutableConversation extends Conversation {
4748
*/
4849
void setTemporary(boolean temporary);
4950

51+
/**
52+
* Set the flag whether this conversation is a switched one or not. See
53+
* {@link JoinMode#SWITCHED} for a detailed description about switched
54+
* conversations.
55+
*
56+
* @param switched <code>true</code>, if this is a switched conversation
57+
*/
58+
void setSwitched(boolean switched);
59+
5060
/**
5161
* Set the given conversation as the parent conversation of this one. So
5262
* this conversation will be a nested conversation of the given parent.

0 commit comments

Comments
 (0)