/** * {@inheritDoc} */ @Override public boolean isRestartConversationEventEnabled() { return CodiUtils.lookupConfigFromEnvironment(null, Boolean.class, super.isRestartConversationEventEnabled()); }
/** * {@inheritDoc} */ @Override public boolean isRestartConversationEventEnabled() { return CodiUtils.lookupConfigFromEnvironment(null, Boolean.class, super.isRestartConversationEventEnabled()); }
/** * Constructor which creates a conversation for the given * {@link ConversationKey}, {@link ConversationExpirationEvaluator}, {@link ConversationConfig} * and {@link BeanManager} * @param conversationKey key of the current conversation * @param expirationEvaluator expiration strategy which decides if the current conversation is expired * @param conversationConfig current conversation-config * @param beanManager current bean-manager */ public DefaultConversation(ConversationKey conversationKey, ConversationExpirationEvaluator expirationEvaluator, ConversationConfig conversationConfig, BeanManager beanManager) { this.conversationKey = conversationKey; this.expirationEvaluator = expirationEvaluator; this.beanManager = beanManager; this.beanStorage = new BeanStorage(this.beanManager); this.closeConversationEventEnable = conversationConfig.isCloseConversationEventEnabled(); this.restartConversationEventEnable = conversationConfig.isRestartConversationEventEnabled(); if(this.expirationEvaluator instanceof ConversationAware) { ((ConversationAware)this.expirationEvaluator).setConversation(this); } }
/** * Constructor which creates a conversation for the given * {@link ConversationKey}, {@link ConversationExpirationEvaluator}, {@link ConversationConfig} * and {@link BeanManager} * @param conversationKey key of the current conversation * @param expirationEvaluator expiration strategy which decides if the current conversation is expired * @param conversationConfig current conversation-config * @param beanManager current bean-manager */ public DefaultConversation(ConversationKey conversationKey, ConversationExpirationEvaluator expirationEvaluator, ConversationConfig conversationConfig, BeanManager beanManager) { this.conversationKey = conversationKey; this.expirationEvaluator = expirationEvaluator; this.beanManager = beanManager; this.beanStorage = new BeanStorage(this.beanManager); this.closeConversationEventEnable = conversationConfig.isCloseConversationEventEnabled(); this.restartConversationEventEnable = conversationConfig.isRestartConversationEventEnabled(); if(this.expirationEvaluator instanceof ConversationAware) { ((ConversationAware)this.expirationEvaluator).setConversation(this); } }
/** * Constructor which creates a conversation for the given * {@link ConversationKey}, {@link ConversationExpirationEvaluator}, {@link ConversationConfig} * and {@link BeanManager} * @param conversationKey key of the current conversation * @param expirationEvaluator expiration strategy which decides if the current conversation is expired * @param conversationConfig current conversation-config * @param beanManager current bean-manager */ public DefaultConversation(ConversationKey conversationKey, ConversationExpirationEvaluator expirationEvaluator, ConversationConfig conversationConfig, BeanManager beanManager) { this.conversationKey = conversationKey; this.expirationEvaluator = expirationEvaluator; this.beanManager = beanManager; this.beanStorage = new BeanStorage(this.beanManager); this.closeConversationEventEnable = conversationConfig.isCloseConversationEventEnabled(); this.restartConversationEventEnable = conversationConfig.isRestartConversationEventEnabled(); if(this.expirationEvaluator instanceof ConversationAware) { ((ConversationAware)this.expirationEvaluator).setConversation(this); } }