|
||||||||||
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.DefaultConversation
@Typed public class DefaultConversation
Constructor Summary | |
---|---|
DefaultConversation(ConversationKey conversationKey,
ConversationExpirationEvaluator expirationEvaluator,
ConversationConfig conversationConfig,
javax.enterprise.inject.spi.BeanManager beanManager)
Constructor which creates a conversation for the given ConversationKey , ConversationExpirationEvaluator , ConversationConfig
and BeanManager |
Method Summary | ||
---|---|---|
|
addBean(org.apache.myfaces.extensions.cdi.core.impl.scope.conversation.spi.BeanEntry<T> beanEntry)
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 |
|
boolean |
getActiveState()
|
|
|
getBean(Class<T> key)
|
|
|
getBeanSubGroup(Class<T> key)
|
|
ConversationExpirationEvaluator |
getExpirationEvaluator()
just for test-cases (to expire a conversation manually) |
|
boolean |
isActive()
|
|
|
removeBeanEntry(Class<T> type)
Allows to remove a bean of the given type |
|
void |
restart()
|
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultConversation(ConversationKey conversationKey, ConversationExpirationEvaluator expirationEvaluator, ConversationConfig conversationConfig, javax.enterprise.inject.spi.BeanManager beanManager)
ConversationKey
, ConversationExpirationEvaluator
, ConversationConfig
and BeanManager
conversationKey
- key of the current conversationexpirationEvaluator
- expiration strategy which decides if the current conversation is expiredconversationConfig
- current conversation-configbeanManager
- current bean-managerMethod Detail |
---|
public boolean isActive()
isActive
in interface EditableConversation
public boolean getActiveState()
getActiveState
in interface EditableConversation
public void deactivate()
deactivate
in interface EditableConversation
public void close()
close
in interface Conversation
public void restart()
restart
in interface Conversation
public <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> void addBean(org.apache.myfaces.extensions.cdi.core.impl.scope.conversation.spi.BeanEntry<T> beanEntry)
BeanEntry
which represents a scoped bean to the current conversation
addBean
in interface EditableConversation
T
- tpye of the beanbeanEntry
- bean instance which should be added to the conversationpublic <T> org.apache.myfaces.extensions.cdi.core.impl.scope.conversation.spi.BeanEntry<T> removeBeanEntry(Class<T> type)
removeBeanEntry
in interface EditableConversation
T
- target typetype
- type of the bean
public ConversationExpirationEvaluator getExpirationEvaluator()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |