Package org.apache.webbeans.context
Class ConversationContext
- java.lang.Object
-
- org.apache.webbeans.context.AbstractContext
-
- org.apache.webbeans.context.PassivatingContext
-
- org.apache.webbeans.context.ConversationContext
-
- All Implemented Interfaces:
Externalizable,Serializable,javax.enterprise.context.spi.AlterableContext,javax.enterprise.context.spi.Context
public class ConversationContext extends PassivatingContext
Conversation context implementation. This reflects THE current Conversation (there can only be one active at a time for a thread). It should not be confused with the Map of conversationId -> Conversation which we internally store in the SessionContext.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.webbeans.context.AbstractContext
active, componentInstanceMap, scopeType
-
-
Constructor Summary
Constructors Constructor Description ConversationContext()ConversationContext(WebBeansContext webBeansContext)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConversationImplgetConversation()voidreadExternal(ObjectInput in)voidsetComponentInstanceMap()voidwriteExternal(ObjectOutput out)-
Methods inherited from class org.apache.webbeans.context.AbstractContext
checkActive, destroy, destroy, destroyInstance, get, get, getInstance, getScope, isActive, setActive
-
-
-
-
Constructor Detail
-
ConversationContext
public ConversationContext()
-
ConversationContext
public ConversationContext(WebBeansContext webBeansContext)
Constructor
-
-
Method Detail
-
setComponentInstanceMap
public void setComponentInstanceMap()
Description copied from class:AbstractContext- Specified by:
setComponentInstanceMapin classAbstractContext
-
getConversation
public ConversationImpl getConversation()
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classPassivatingContext- Throws:
IOExceptionClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classPassivatingContext- Throws:
IOException
-
-