public class ConversationManager extends Object
| Constructor and Description |
|---|
ConversationManager(WebBeansContext webBeansContext)
Creates new conversation manager
|
| Modifier and Type | Method and Description |
|---|---|
void |
addToConversationStorage(ConversationContext conversationContext,
String conversationId)
Add the given ConversationContext to the SessionContext.
|
boolean |
conversationTimedOut(ConversationImpl conv) |
void |
destroyConversationContext(ConversationContext ctx)
Destroy the given ConversationContext and fire the proper
@Destroyed event with the correct payload.
|
javax.enterprise.context.Conversation |
getConversationBeanReference()
Gets conversation instance from conversation bean.
|
ConversationContext |
getConversationContext(javax.enterprise.context.spi.Context sessionContext)
This method shall only get called from the ContextsService.
|
Object |
getLifecycleEventPayload(ConversationContext ctx) |
Set<ConversationContext> |
getSessionConversations(javax.enterprise.context.spi.Context sessionContext,
boolean create) |
boolean |
removeConversationFromStorage(ConversationContext conversationContext)
Remove the given ConversationContext from the SessionContext storage.
|
public ConversationManager(WebBeansContext webBeansContext)
public ConversationContext getConversationContext(javax.enterprise.context.spi.Context sessionContext)
public void addToConversationStorage(ConversationContext conversationContext, String conversationId)
Conversation.begin().public boolean removeConversationFromStorage(ConversationContext conversationContext)
Conversation.end() or during cleanup.
Not that this does not destroy the ConversationContext!true if the conversationContext got removedpublic javax.enterprise.context.Conversation getConversationBeanReference()
public boolean conversationTimedOut(ConversationImpl conv)
public void destroyConversationContext(ConversationContext ctx)
public Object getLifecycleEventPayload(ConversationContext ctx)
public Set<ConversationContext> getSessionConversations(javax.enterprise.context.spi.Context sessionContext, boolean create)
create - whether a session and the map in there shall get created or notCopyright © 2008–2020 The Apache Software Foundation. All rights reserved.