|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.weld.conversation.ConversationImpl
@RequestScoped @Named(value="javax.enterprise.context.conversation") @Default public class ConversationImpl
The current conversation implementation
Conversation,
Serialized Form| Constructor Summary | |
|---|---|
ConversationImpl()
Creates a new conversation |
|
ConversationImpl(ConversationImpl conversation)
Creates a new conversation from an existing one. |
|
| Method Summary | |
|---|---|
void |
begin()
|
void |
begin(java.lang.String id)
|
void |
end()
|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getId()
|
java.lang.String |
getOriginalId()
Gets the original ID of the conversation |
long |
getTimeout()
|
java.lang.String |
getUnderlyingId()
Get the Conversation Id, regardless of whether the conversation is long running or transient, needed for internal operations |
int |
hashCode()
|
void |
init(org.jboss.weld.conversation.ConversationIdGenerator conversationIdGenerator,
long timeout)
Initializes a new conversation |
boolean |
isLongRunning()
|
boolean |
isTransient()
|
void |
setLongRunning(boolean longRunning)
|
void |
setTimeout(long timeout)
|
void |
switchTo(ConversationImpl conversation)
Assumes the identity of another conversation |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ConversationImpl()
public ConversationImpl(ConversationImpl conversation)
conversation - The old conversation| Method Detail |
|---|
@Inject
public void init(org.jboss.weld.conversation.ConversationIdGenerator conversationIdGenerator,
@ConversationInactivityTimeout
long timeout)
conversationIdGenerator - The conversation ID generatortimeout - The conversation inactivity timeoutpublic void begin()
begin in interface javax.enterprise.context.Conversationpublic void begin(java.lang.String id)
begin in interface javax.enterprise.context.Conversationpublic void end()
end in interface javax.enterprise.context.Conversationpublic java.lang.String getId()
getId in interface javax.enterprise.context.Conversationpublic java.lang.String getUnderlyingId()
public long getTimeout()
getTimeout in interface javax.enterprise.context.Conversationpublic boolean isLongRunning()
isLongRunning in interface javax.enterprise.context.Conversationpublic void setTimeout(long timeout)
setTimeout in interface javax.enterprise.context.Conversationpublic void switchTo(ConversationImpl conversation)
conversation - The new conversationpublic java.lang.String toString()
toString in class java.lang.Objectpublic void setLongRunning(boolean longRunning)
public java.lang.String getOriginalId()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean isTransient()
isTransient in interface javax.enterprise.context.Conversation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||