public class CdiContainer extends Object
Modifier and Type | Field and Description |
---|---|
protected javax.enterprise.inject.spi.BeanManager |
beanManager |
Constructor and Description |
---|
CdiContainer(javax.enterprise.inject.spi.BeanManager beanManager,
INonContextualManager nonContextualManager)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
activateConversationalContext(RequestCycle cycle,
String cid)
Activates the conversational context and starts the conversation with the specified cid
|
protected void |
bind(Application application)
Binds this container instance to the
Application , making it possible to retrieve it
later |
void |
deactivateConversationalContext(RequestCycle cycle)
Deactivates conversational context
|
static CdiContainer |
get()
Retrieves container instance stored in the current thread's application
|
static CdiContainer |
get(Application application)
Retrieves container instance stored in the application
|
String |
getConversationMarker(Page page)
Retrieves a conversation id, if any, that is associated with a
Page instance |
INonContextualManager |
getNonContextualManager() |
void |
removeConversationMarker(Page page)
Removes conversation marker from the page instance which prevents the conversation from
propagating to the page.
|
public CdiContainer(javax.enterprise.inject.spi.BeanManager beanManager, INonContextualManager nonContextualManager)
beanManager
- bean managerpublic INonContextualManager getNonContextualManager()
public void deactivateConversationalContext(RequestCycle cycle)
cycle
- public void activateConversationalContext(RequestCycle cycle, String cid)
cycle
- cid
- public String getConversationMarker(Page page)
Page
instancepage
- page instancepublic void removeConversationMarker(Page page)
onDetach()
method.page
- protected void bind(Application application)
Application
, making it possible to retrieve it
laterapplication
- public static final CdiContainer get(Application application)
application
- null
if nonepublic static final CdiContainer get()
null
if noneCopyright © 2006–2022 Apache Software Foundation. All rights reserved.