org.jboss.seam.security.external.dialogues
Class DialogueContext

java.lang.Object
  extended by org.jboss.seam.security.external.dialogues.DialogueContext
All Implemented Interfaces:
javax.enterprise.context.spi.Context

public class DialogueContext
extends Object
implements javax.enterprise.context.spi.Context

Author:
Marcel Kolsteren

Constructor Summary
DialogueContext()
           
 
Method Summary
 void attach(String dialogueId)
          Attaches an existing dialogue to the current thread
 String create()
           
 void destroy()
           
 void detach()
          Detaches the dialogue from the current thread
<T> T
get(javax.enterprise.context.spi.Contextual<T> contextual)
           
<T> T
get(javax.enterprise.context.spi.Contextual<T> contextual, javax.enterprise.context.spi.CreationalContext<T> creationalContext)
           
protected  HashMapBeanStore getBeanStore()
           
 Class<? extends Annotation> getScope()
           
 void initialize(javax.servlet.ServletContext servletContext)
           
 boolean isActive()
           
 boolean isAttached()
           
 boolean isExistingDialogue(String dialogueId)
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DialogueContext

public DialogueContext()
Method Detail

getBeanStore

protected HashMapBeanStore getBeanStore()

initialize

public void initialize(javax.servlet.ServletContext servletContext)

destroy

public void destroy()

create

public String create()

remove

public void remove()

isExistingDialogue

public boolean isExistingDialogue(String dialogueId)

attach

public void attach(String dialogueId)
Attaches an existing dialogue to the current thread

Parameters:
dialogueIdThreadLocal -

detach

public void detach()
Detaches the dialogue from the current thread


isAttached

public boolean isAttached()

get

public <T> T get(javax.enterprise.context.spi.Contextual<T> contextual,
                 javax.enterprise.context.spi.CreationalContext<T> creationalContext)
Specified by:
get in interface javax.enterprise.context.spi.Context

get

public <T> T get(javax.enterprise.context.spi.Contextual<T> contextual)
Specified by:
get in interface javax.enterprise.context.spi.Context

getScope

public Class<? extends Annotation> getScope()
Specified by:
getScope in interface javax.enterprise.context.spi.Context

isActive

public boolean isActive()
Specified by:
isActive in interface javax.enterprise.context.spi.Context


Copyright © 2011 Seam Framework. All Rights Reserved.