org.apache.myfaces.extensions.cdi.core.api.scope.conversation
Interface Conversation

All Superinterfaces:
Serializable

public interface Conversation
extends Serializable

The central interface for a conversation which is a container for 1-n beans (which share the same time for destruction). A conversation is started automatically with the first access


Method Summary
 void close()
          Deactivates the conversation and un-scopes all bean instances immediately.
 void restart()
          Un-scopes all bean instances immediately.
 

Method Detail

close

void close()
Deactivates the conversation and un-scopes all bean instances immediately.
At the next cleanup the whole conversation will be destroyed. (If an inactive Conversation gets resolved before the cleanup, the WindowContext has to destroy it. -> A new conversation will be created immediately.


restart

void restart()
Un-scopes all bean instances immediately. Instead of destroying the whole conversation the conversation stays active. (The conversation will be marked as used.)
As soon as an instance of a bean is requested, the instance will be created based on the original bean descriptor. This approach allows a better performance, if the conversation is needed immediately.



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