org.apache.myfaces.extensions.cdi.core.api.scope.conversation.config
Class ConversationConfig

java.lang.Object
  extended by org.apache.myfaces.extensions.cdi.core.api.config.AbstractAttributeAware
      extended by org.apache.myfaces.extensions.cdi.core.api.scope.conversation.config.ConversationConfig
All Implemented Interfaces:
Serializable, AttributeAware, CodiConfig

@ApplicationScoped
public class ConversationConfig
extends AbstractAttributeAware
implements CodiConfig

Configuration for CODI conversations - it's customizable via the @Alternative or @Specializes mechanism of CDI.

See Also:
Serialized Form

Constructor Summary
protected ConversationConfig()
           
 
Method Summary
 int getConversationTimeoutInMinutes()
          Timeout for ConversationScoped beans, which will be used if the conversation doesn't get closed manually.
 boolean isAccessBeanEventEnabled()
          Specifies if the AccessBeanEvent will be fired.
 boolean isCloseConversationEventEnabled()
          Specifies if the CloseConversationEvent will be fired.
 boolean isConversationRequiredEnabled()
          Specifies if ConversationRequired is enabled
 boolean isRestartConversationEventEnabled()
          Specifies if the RestartConversationEvent will be fired.
 boolean isScopeBeanEventEnabled()
          Specifies if the ScopeBeanEvent will be fired.
 boolean isStartConversationEventEnabled()
          Specifies if the StartConversationEvent will be fired.
 boolean isUnscopeBeanEventEnabled()
          Specifies if the UnscopeBeanEvent will be fired.
 
Methods inherited from class org.apache.myfaces.extensions.cdi.core.api.config.AbstractAttributeAware
containsAttribute, getAttribute, initConfig, setAttribute, setAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConversationConfig

protected ConversationConfig()
Method Detail

getConversationTimeoutInMinutes

public int getConversationTimeoutInMinutes()
Timeout for ConversationScoped beans, which will be used if the conversation doesn't get closed manually.

Returns:
timeout in minutes

isScopeBeanEventEnabled

public boolean isScopeBeanEventEnabled()
Specifies if the ScopeBeanEvent will be fired.

Returns:
true if the event should be fired, false otherwise

isAccessBeanEventEnabled

public boolean isAccessBeanEventEnabled()
Specifies if the AccessBeanEvent will be fired.

Returns:
true if the event should be fired, false otherwise

isUnscopeBeanEventEnabled

public boolean isUnscopeBeanEventEnabled()
Specifies if the UnscopeBeanEvent will be fired.

Returns:
true if the event should be fired, false otherwise

isStartConversationEventEnabled

public boolean isStartConversationEventEnabled()
Specifies if the StartConversationEvent will be fired.

Returns:
true if the event should be fired, false otherwise

isCloseConversationEventEnabled

public boolean isCloseConversationEventEnabled()
Specifies if the CloseConversationEvent will be fired.

Returns:
true if the event should be fired, false otherwise

isRestartConversationEventEnabled

public boolean isRestartConversationEventEnabled()
Specifies if the RestartConversationEvent will be fired.

Returns:
true if the event should be fired, false otherwise

isConversationRequiredEnabled

public boolean isConversationRequiredEnabled()
Specifies if ConversationRequired is enabled

Returns:
true if conversation-required is enabled, false otherwise


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