com.caucho.server.webbeans
Class ConversationContext

java.lang.Object
  extended by com.caucho.config.scope.AbstractScopeContext
      extended by com.caucho.server.webbeans.ConversationContext
All Implemented Interfaces:
java.io.Serializable, Conversation, Context

public class ConversationContext
extends AbstractScopeContext
implements Conversation, java.io.Serializable

The conversation scope value

See Also:
Serialized Form

Constructor Summary
ConversationContext()
           
 
Method Summary
 void begin()
          Begins an extended conversation
 void begin(java.lang.String name)
           
protected  ContextContainer createContextContainer()
          Returns the current value of the component in the conversation scope.
 void destroy()
           
 void end()
          Ends an extended conversation
protected  ContextContainer getContextContainer()
          Returns the current value of the component in the conversation scope.
 java.lang.String getId()
           
 java.lang.Class<? extends java.lang.annotation.Annotation> getScope()
          Returns the scope annotation type.
 long getTimeout()
           
 boolean isActive()
          Returns true if the scope is currently active.
 boolean isTransient()
           
 void setTimeout(long timeout)
           
 java.lang.String toString()
           
 
Methods inherited from class com.caucho.config.scope.AbstractScopeContext
closeContext, create, get, get
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConversationContext

public ConversationContext()
Method Detail

isActive

public boolean isActive()
Returns true if the scope is currently active.

Specified by:
isActive in interface Context
Specified by:
isActive in class AbstractScopeContext

isTransient

public boolean isTransient()
Specified by:
isTransient in interface Conversation

getScope

public java.lang.Class<? extends java.lang.annotation.Annotation> getScope()
Returns the scope annotation type.

Specified by:
getScope in interface Context
Specified by:
getScope in class AbstractScopeContext

getContextContainer

protected ContextContainer getContextContainer()
Returns the current value of the component in the conversation scope.

Specified by:
getContextContainer in class AbstractScopeContext

createContextContainer

protected ContextContainer createContextContainer()
Returns the current value of the component in the conversation scope.

Specified by:
createContextContainer in class AbstractScopeContext

begin

public void begin()
Begins an extended conversation

Specified by:
begin in interface Conversation

begin

public void begin(java.lang.String name)
Specified by:
begin in interface Conversation

end

public void end()
Ends an extended conversation

Specified by:
end in interface Conversation

getId

public java.lang.String getId()
Specified by:
getId in interface Conversation

getTimeout

public long getTimeout()
Specified by:
getTimeout in interface Conversation

setTimeout

public void setTimeout(long timeout)
Specified by:
setTimeout in interface Conversation

destroy

public void destroy()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object