org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation
Class InjectableConversation

java.lang.Object
  extended by org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.InjectableConversation
All Implemented Interfaces:
Serializable, Conversation, EditableConversation

@Typed
public class InjectableConversation
extends Object
implements EditableConversation

Author:
Gerhard Petracek
See Also:
Serialized Form

Constructor Summary
protected InjectableConversation(javax.enterprise.inject.spi.Bean<?> bean, WindowContextManager windowContextManager)
           
 
Method Summary
<T> void
addBean(BeanEntry<T> beanInstance)
           
 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()
           
<T> T
getBean(Class<T> key)
           
 boolean isActive()
           
 void restart()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InjectableConversation

protected InjectableConversation(javax.enterprise.inject.spi.Bean<?> bean,
                                 WindowContextManager windowContextManager)
Method Detail

close

public void close()
Specified by:
close in interface Conversation

restart

public void restart()
Specified by:
restart in interface Conversation

isActive

public boolean isActive()
Specified by:
isActive in interface EditableConversation
Returns:
evaluates and returns if the conversation is active

getActiveState

public boolean getActiveState()
Specified by:
getActiveState in interface EditableConversation
Returns:
returns if the conversation is active (without evaluation)

deactivate

public void deactivate()
Description copied from interface: EditableConversation
has to expire a conversation. if the conversation is expired afterwards it has to be inactive

Specified by:
deactivate in interface EditableConversation

addBean

public <T> void addBean(BeanEntry<T> beanInstance)
Specified by:
addBean in interface EditableConversation

getBean

public <T> T getBean(Class<T> key)
Specified by:
getBean in interface EditableConversation
Type Parameters:
T - type of the requested bean
Parameters:
key - class of the requested bean
Returns:
an instance of the requested bean if the conversation is active - null otherwise

findConversation

protected EditableConversation findConversation()


Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.