Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Micha Kiener
committed
Jan 18, 2010
1 parent
bede7e9
commit 11284ed
Showing
5 changed files
with
213 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
81 changes: 81 additions & 0 deletions
81
...rk.context/src/test/java/org/springframework/conversation/ConversationEventAwareBean.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
/* | ||
* Copyright 2002-2008 the original author or authors. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not | ||
* use this file except in compliance with the License. You may obtain a copy of | ||
* the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
* License for the specific language governing permissions and limitations under | ||
* the License. | ||
*/ | ||
package org.springframework.conversation; | ||
|
||
/** | ||
* @author Micha Kiener | ||
* @since 3.1 | ||
*/ | ||
public class ConversationEventAwareBean implements ConversationListener { | ||
private Conversation conversation1; | ||
private Conversation conversation2; | ||
private ConversationActivationType activationType; | ||
private ConversationDeactivationType deactivationType; | ||
private ConversationEndingType endingType; | ||
|
||
/** | ||
* @see org.springframework.conversation.ConversationListener#conversationActivated(org.springframework.conversation.Conversation, | ||
* org.springframework.conversation.Conversation, | ||
* org.springframework.conversation.ConversationActivationType) | ||
*/ | ||
public void conversationActivated(Conversation conversation, Conversation oldCurrentConversation, | ||
ConversationActivationType activationType) { | ||
conversation1 = conversation; | ||
conversation2 = oldCurrentConversation; | ||
this.activationType = activationType; | ||
} | ||
|
||
/** | ||
* @see org.springframework.conversation.ConversationListener#conversationDeactivated(org.springframework.conversation.Conversation, | ||
* org.springframework.conversation.Conversation, | ||
* org.springframework.conversation.ConversationDeactivationType) | ||
*/ | ||
public void conversationDeactivated(Conversation conversation, Conversation newCurrentConversation, | ||
ConversationDeactivationType deactivationType) { | ||
conversation1 = conversation; | ||
conversation2 = newCurrentConversation; | ||
this.deactivationType = deactivationType; | ||
} | ||
|
||
/** | ||
* @see org.springframework.conversation.ConversationListener#conversationEnded(org.springframework.conversation.Conversation, | ||
* org.springframework.conversation.ConversationEndingType) | ||
*/ | ||
public void conversationEnded(Conversation conversation, ConversationEndingType endingType) { | ||
conversation1 = conversation; | ||
this.endingType = endingType; | ||
} | ||
|
||
public Conversation getConversation1() { | ||
return conversation1; | ||
} | ||
|
||
public Conversation getConversation2() { | ||
return conversation2; | ||
} | ||
|
||
public ConversationActivationType getActivationType() { | ||
return activationType; | ||
} | ||
|
||
public ConversationDeactivationType getDeactivationType() { | ||
return deactivationType; | ||
} | ||
|
||
public ConversationEndingType getEndingType() { | ||
return endingType; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters