Skip to content

Commit 646468e

Browse files
author
Micha Kiener
committed
SPR-6416, refactoring of the resolver, moved in manager package
1 parent 5c1d9d5 commit 646468e

File tree

10 files changed

+15
-15
lines changed

10 files changed

+15
-15
lines changed
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
* License for the specific language governing permissions and limitations under
1414
* the License.
1515
*/
16-
package org.springframework.conversation.scope;
16+
package org.springframework.conversation.manager;
17+
1718

1819
/**
1920
* The abstract implementation for a {@link ConversationResolver}.
@@ -24,7 +25,7 @@
2425
public abstract class AbstractConversationResolver implements ConversationResolver {
2526

2627
/**
27-
* @see org.springframework.conversation.scope.ConversationResolver#hasCurrentConversationId()
28+
* @see org.springframework.conversation.manager.ConversationResolver#hasCurrentConversationId()
2829
*/
2930
public boolean hasCurrentConversationId() {
3031
return (getCurrentConversationId() != null);

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
import org.springframework.conversation.annotation.BeginConversation;
2727
import org.springframework.conversation.annotation.Conversational;
2828
import org.springframework.conversation.annotation.EndConversation;
29-
import org.springframework.conversation.scope.ConversationResolver;
3029
import org.springframework.conversation.scope.ConversationScope;
3130

3231
/**

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
import org.springframework.conversation.ConversationEndingType;
2424
import org.springframework.conversation.ConversationType;
2525
import org.springframework.conversation.JoinMode;
26-
import org.springframework.conversation.scope.ConversationResolver;
2726

2827
/**
2928
* The default implementation for the {@link ConversationManager} interface.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* License for the specific language governing permissions and limitations under
1414
* the License.
1515
*/
16-
package org.springframework.conversation.scope;
16+
package org.springframework.conversation.manager;
1717

1818
/**
1919
* The current conversation resolver is another extension point for the

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import java.util.List;
2020

2121
import org.springframework.conversation.Conversation;
22-
import org.springframework.conversation.scope.ConversationResolver;
2322

2423
/**
2524
* The conversation store is used within the {@link ConversationManager} to
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
* License for the specific language governing permissions and limitations under
1414
* the License.
1515
*/
16-
package org.springframework.conversation.scope;
16+
package org.springframework.conversation.manager;
17+
1718

1819
/**
1920
* An implementation of the {@link ConversationResolver} where the currently
@@ -28,14 +29,14 @@ public class ThreadAttachedConversationResolver extends AbstractConversationReso
2829
private static final ThreadLocal<String> CURRENT_CONVERSATION_ID = new ThreadLocal<String>();
2930

3031
/**
31-
* @see org.springframework.conversation.scope.ConversationResolver#getCurrentConversationId()
32+
* @see org.springframework.conversation.manager.ConversationResolver#getCurrentConversationId()
3233
*/
3334
public String getCurrentConversationId() {
3435
return CURRENT_CONVERSATION_ID.get();
3536
}
3637

3738
/**
38-
* @see org.springframework.conversation.scope.ConversationResolver#setCurrentConversationId(java.lang.String)
39+
* @see org.springframework.conversation.manager.ConversationResolver#setCurrentConversationId(java.lang.String)
3940
*/
4041
public void setCurrentConversationId(String conversationId) {
4142
CURRENT_CONVERSATION_ID.set(conversationId);

org.springframework.context/src/main/java/org/springframework/conversation/scope/DefaultConversationScope.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import org.springframework.conversation.Conversation;
2626
import org.springframework.conversation.JoinMode;
2727
import org.springframework.conversation.manager.ConversationManager;
28+
import org.springframework.conversation.manager.ConversationResolver;
2829
import org.springframework.conversation.manager.ConversationStore;
2930
import org.springframework.util.Assert;
3031

org.springframework.context/src/test/java/org/springframework/conversation/BasicConversationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
import org.springframework.context.ConfigurableApplicationContext;
2323
import org.springframework.context.support.GenericXmlApplicationContext;
2424
import org.springframework.conversation.manager.ConversationManager;
25+
import org.springframework.conversation.manager.ConversationResolver;
2526
import org.springframework.conversation.manager.ConversationStore;
2627
import org.springframework.conversation.manager.MutableConversation;
27-
import org.springframework.conversation.scope.ConversationResolver;
2828

2929
/**
3030
* Basic conversation management tests.

org.springframework.context/src/test/java/org/springframework/conversation/conversationTestContext.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<property name="useFallbackMap" value="false"/>
2626
</bean>
2727

28-
<bean id="conversationResolver" class="org.springframework.conversation.scope.ThreadAttachedConversationResolver" />
28+
<bean id="conversationResolver" class="org.springframework.conversation.manager.ThreadAttachedConversationResolver" />
2929

3030
<bean id="conversationScope" class="org.springframework.conversation.scope.DefaultConversationScope" lazy-init="false">
3131
<property name="conversationManager" ref="conversationManager"/>

org.springframework.web/src/main/java/org/springframework/web/conversation/WebBasedConversationResolver.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
package org.springframework.web.conversation;
1717

1818
import org.springframework.conversation.Conversation;
19-
import org.springframework.conversation.scope.ConversationResolver;
20-
import org.springframework.conversation.scope.ThreadAttachedConversationResolver;
19+
import org.springframework.conversation.manager.ConversationResolver;
20+
import org.springframework.conversation.manager.ThreadAttachedConversationResolver;
2121
import org.springframework.web.context.request.RequestAttributes;
2222
import org.springframework.web.context.request.RequestContextHolder;
2323

@@ -63,7 +63,7 @@ public WebBasedConversationResolver() {
6363
}
6464

6565
/**
66-
* @see org.springframework.conversation.scope.ThreadAttachedConversationResolver#getCurrentConversationId()
66+
* @see org.springframework.conversation.manager.ThreadAttachedConversationResolver#getCurrentConversationId()
6767
*/
6868
@Override
6969
public String getCurrentConversationId() {
@@ -82,7 +82,7 @@ public String getCurrentConversationId() {
8282
}
8383

8484
/**
85-
* @see org.springframework.conversation.scope.ThreadAttachedConversationResolver#setCurrentConversationId(java.lang.String)
85+
* @see org.springframework.conversation.manager.ThreadAttachedConversationResolver#setCurrentConversationId(java.lang.String)
8686
*/
8787
@Override
8888
public void setCurrentConversationId(String conversationId) {

0 commit comments

Comments
 (0)