@Typed public class InjectableConversation extends Object implements EditableConversation
| Modifier | Constructor and Description |
|---|---|
protected |
InjectableConversation(javax.enterprise.inject.spi.Bean<?> bean,
WindowContextManager windowContextManager) |
| Modifier and Type | Method and Description |
|---|---|
<T> void |
addBean(BeanEntry<T> beanInstance)
Adds a
BeanEntry which represents a scoped bean to the current conversation |
void |
close() |
void |
deactivate()
has to expire a conversation.
|
protected EditableConversation |
findConversation() |
boolean |
getActiveState() |
<T> T |
getBean(Class<T> key) |
<T> Set<Class<T>> |
getBeanSubGroup(Class<T> key) |
boolean |
isActive() |
<T> BeanEntry<T> |
removeBeanEntry(Class<T> type)
Allows to remove a bean of the given type
|
void |
restart() |
protected InjectableConversation(javax.enterprise.inject.spi.Bean<?> bean,
WindowContextManager windowContextManager)
public void close()
close in interface Conversationpublic void restart()
restart in interface Conversationpublic boolean isActive()
isActive in interface EditableConversationpublic boolean getActiveState()
getActiveState in interface EditableConversationpublic void deactivate()
deactivate in interface EditableConversationpublic <T> void addBean(BeanEntry<T> beanInstance)
BeanEntry which represents a scoped bean to the current conversationaddBean in interface EditableConversationT - tpye of the beanbeanInstance - bean instance which should be added to the conversationpublic <T> T getBean(Class<T> key)
getBean in interface EditableConversationT - type of the requested beankey - class of the requested beanpublic <T> Set<Class<T>> getBeanSubGroup(Class<T> key)
getBeanSubGroup in interface EditableConversationT - type of the requested groupkey - class of the requested sub-grouppublic <T> BeanEntry<T> removeBeanEntry(Class<T> type)
removeBeanEntry in interface EditableConversationT - target typetype - type of the beanprotected EditableConversation findConversation()
Copyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.