|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.InjectableConversation
@Typed public class InjectableConversation
Constructor Summary | |
---|---|
protected |
InjectableConversation(javax.enterprise.inject.spi.Bean<?> bean,
WindowContextManager windowContextManager)
|
Method Summary | ||
---|---|---|
|
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. if the conversation is expired afterwards it has to be inactive |
|
protected EditableConversation |
findConversation()
|
|
boolean |
getActiveState()
|
|
|
getBean(Class<T> key)
|
|
|
getBeanSubGroup(Class<T> key)
|
|
boolean |
isActive()
|
|
|
removeBeanEntry(Class<T> type)
Allows to remove a bean of the given type |
|
void |
restart()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected InjectableConversation(javax.enterprise.inject.spi.Bean<?> bean, WindowContextManager windowContextManager)
Method Detail |
---|
public void close()
close
in interface Conversation
public void restart()
restart
in interface Conversation
public boolean isActive()
isActive
in interface EditableConversation
public boolean getActiveState()
getActiveState
in interface EditableConversation
public void deactivate()
deactivate
in interface EditableConversation
public <T> void addBean(BeanEntry<T> beanInstance)
BeanEntry
which represents a scoped bean to the current conversation
addBean
in interface EditableConversation
T
- tpye of the beanbeanInstance
- bean instance which should be added to the conversationpublic <T> T getBean(Class<T> key)
getBean
in interface EditableConversation
T
- type of the requested beankey
- class of the requested bean
public <T> Set<Class<T>> getBeanSubGroup(Class<T> key)
getBeanSubGroup
in interface EditableConversation
T
- type of the requested groupkey
- class of the requested sub-group
public <T> BeanEntry<T> removeBeanEntry(Class<T> type)
removeBeanEntry
in interface EditableConversation
T
- target typetype
- type of the bean
protected EditableConversation findConversation()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |