Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
爱吃血肠
spring-framework
提交
3d03f816
S
spring-framework
项目概览
爱吃血肠
/
spring-framework
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
spring-framework
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
3d03f816
编写于
12月 23, 2009
作者:
M
Micha Kiener
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
SPR-6419, manager API
上级
4b55affb
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
26 addition
and
16 deletion
+26
-16
org.springframework.context/src/main/java/org/springframework/conversation/manager/ConversationManager.java
...ngframework/conversation/manager/ConversationManager.java
+26
-16
未找到文件。
org.springframework.context/src/main/java/org/springframework/conversation/manager/ConversationManager.java
浏览文件 @
3d03f816
...
...
@@ -19,6 +19,7 @@ package org.springframework.conversation.manager;
import
java.util.List
;
import
org.springframework.conversation.Conversation
;
import
org.springframework.conversation.ConversationEndingType
;
import
org.springframework.conversation.ConversationListener
;
import
org.springframework.conversation.ConversationType
;
import
org.springframework.conversation.JoinMode
;
...
...
@@ -61,12 +62,12 @@ import org.springframework.conversation.scope.ConversationScope;
* <b>Ending a conversation</b><br/>
* A current conversation is ended by either placing the {@link EndConversation}
* annotation on the ending method or by manually invoke the
* {@link ConversationManager#endCurrentConversation(
)} method. A current
*
conversation might also be ended, if a new conversation is started having
*
{@link JoinMode#NEW} being declared where the current conversation is ended
*
silently and a new one is created. This might be the obvious way to end a
*
conversation, if the end of a use case is not always forced to be invoked by
* a user.<br/>
* {@link ConversationManager#endCurrentConversation(
ConversationEndingType)}
*
method. A current conversation might also be ended, if a new conversation is
*
started having {@link JoinMode#NEW} being declared where the current
*
conversation is ended silently and a new one is created. This might be the
*
obvious way to end a conversation, if the end of a use case is not always
*
forced to be invoked by
a user.<br/>
* <br/>
*
* <b>Temporary conversations</b><br/>
...
...
@@ -169,26 +170,32 @@ public interface ConversationManager {
* Ends the given conversation. If it is a nested one, ends it and switches
* back to its parent to be the current conversation. This method is usually
* used to end a switched conversation which is not the current one. To end
* the current conversation, the method
{@link #endCurrentConversation()}
* might be used.
* the current conversation, the method
*
{@link #endCurrentConversation(ConversationEndingType)}
might be used.
*
* @param conversation the conversation to end
* @param endingType the type qualifying on how this conversation is to be
* ended (only passed on to any listeners, does not have an impact on the
* conversation manager)
*/
void
endConversation
(
Conversation
conversation
);
void
endConversation
(
Conversation
conversation
,
ConversationEndingType
endingType
);
/**
* Ends the given conversation to the final root conversation, if it is a
* nested or joined one. In addition to
* {@link #endConversation(Conversation
)} this one recursively invokes
*
itself until the root conversation has been ended. If the given
*
conversation is not the tail of the conversation, the most nested one is
* searched and ended too.<br/>
* {@link #endConversation(Conversation
, ConversationEndingType)} this one
*
recursively invokes itself until the root conversation has been ended. If
*
the given conversation is not the tail of the conversation, the most
*
nested one is
searched and ended too.<br/>
* Use this method with caution as this could break the chain of nested
* conversations.
*
* @param conversation the conversation to be ended finally
* @param endingType the type qualifying on how this conversation is to be
* ended (only passed on to any listeners, does not have an impact on the
* conversation manager)
*/
void
finalEndConversation
(
Conversation
conversation
);
void
finalEndConversation
(
Conversation
conversation
,
ConversationEndingType
endingType
);
/**
* Returns the current conversation, if any available, <code>null</code>
...
...
@@ -203,11 +210,14 @@ public interface ConversationManager {
/**
* Ends the current conversation, if any is in progress. This is the same as
* ending the conversation returned by {@link #getCurrentConversation()}
* using {@link #endConversation(Conversation)}.
* using {@link #endConversation(Conversation
, ConversationEndingType
)}.
*
* @param endingType the type qualifying on how this conversation is to be
* ended (only passed on to any listeners, does not have an impact on the
* conversation manager)
* @return the current conversation which has been ended
*/
Conversation
endCurrentConversation
();
Conversation
endCurrentConversation
(
ConversationEndingType
endingType
);
/**
* Returns a list of available conversations within the current store.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录