/** * Constructor used by the container for creating the {@link WindowContextQuotaHandler} based on the given * {@link WindowContextConfig} * @param windowContextConfig current window-context-config */ @Inject public DefaultWindowContextQuotaHandler(WindowContextConfig windowContextConfig) { this.maxWindowContextCount = windowContextConfig.getMaxWindowContextCount(); }
private void lazyInitConversationConfig() { if(this.conversationConfig == null) { this.conversationConfig = getConversationConfig(); this.scopeBeanEventEnable = this.conversationConfig.isScopeBeanEventEnabled(); this.accessBeanEventEnable = this.conversationConfig.isAccessBeanEventEnabled(); this.unscopeBeanEventEnable = this.conversationConfig.isUnscopeBeanEventEnabled(); } } }
@Inject protected DefaultWindowHandler(WindowContextConfig config) { this.useWindowAwareUrlEncoding = config.isUrlParameterSupported(); }
protected void init() { this.windowHandler = CodiUtils.getContextualReferenceByClass(WindowHandler.class); this.windowContextQuotaHandler = CodiUtils.getContextualReferenceByClass(WindowContextQuotaHandler.class); this.allowUnknownWindowIds = this.windowContextConfig.isUnknownWindowIdsAllowed(); this.urlParameterSupported = this.windowContextConfig.isUrlParameterSupported(); this.projectStageDevelopment = ProjectStage.Development == this.projectStage; }
/** * {@inheritDoc} */ @Override public boolean isConversationRequiredEnabled() { return CodiUtils.lookupConfigFromEnvironment(null, Boolean.class, super.isConversationRequiredEnabled()); } }
/** * {@inheritDoc} */ @Override public boolean isScopeBeanEventEnabled() { return CodiUtils.lookupConfigFromEnvironment(null, Boolean.class, super.isScopeBeanEventEnabled()); }
/** * {@inheritDoc} */ @Override public boolean isCreateWindowContextEventEnabled() { return CodiUtils.lookupConfigFromEnvironment(null, Boolean.class, super.isCreateWindowContextEventEnabled()); }
/** * {@inheritDoc} */ @Override public boolean isCloseEmptyWindowContextsEnabled() { return CodiUtils.lookupConfigFromEnvironment(null, Boolean.class, super.isCloseEmptyWindowContextsEnabled()); }
/** * {@inheritDoc} */ @Override public boolean isEagerWindowContextDetectionEnabled() { return CodiUtils.lookupConfigFromEnvironment(null, Boolean.class, super.isEagerWindowContextDetectionEnabled()); }
/** * {@inheritDoc} */ @Override public boolean isCloseConversationEventEnabled() { return CodiUtils.lookupConfigFromEnvironment(null, Boolean.class, super.isCloseConversationEventEnabled()); }
/** * {@inheritDoc} */ @Override public int getConversationTimeoutInMinutes() { return CodiUtils.lookupConfigFromEnvironment(null, Integer.class, super.getConversationTimeoutInMinutes()); }
/** * {@inheritDoc} */ @Override public boolean isUnscopeBeanEventEnabled() { return CodiUtils.lookupConfigFromEnvironment(null, Boolean.class, super.isUnscopeBeanEventEnabled()); }
/** * Constructor used by the container for creating the {@link WindowContextQuotaHandler} based on the given * {@link WindowContextConfig} * @param windowContextConfig current window-context-config */ @Inject public DefaultWindowContextQuotaHandler(WindowContextConfig windowContextConfig) { this.maxWindowContextCount = windowContextConfig.getMaxWindowContextCount(); }
/** * {@inheritDoc} */ @Override public boolean isUrlParameterSupported() { return CodiUtils.lookupConfigFromEnvironment(null, Boolean.class, super.isUrlParameterSupported()); }
/** * {@inheritDoc} */ @Override public boolean isConversationRequiredEnabled() { return CodiUtils.lookupConfigFromEnvironment(null, Boolean.class, super.isConversationRequiredEnabled()); } }
/** * {@inheritDoc} */ @Override public boolean isScopeBeanEventEnabled() { return CodiUtils.lookupConfigFromEnvironment(null, Boolean.class, super.isScopeBeanEventEnabled()); }
/** * Constructor used by the container for creating the {@link WindowContextQuotaHandler} based on the given * {@link WindowContextConfig} * @param windowContextConfig current window-context-config */ @Inject public DefaultWindowContextQuotaHandler(WindowContextConfig windowContextConfig) { this.maxWindowContextCount = windowContextConfig.getMaxWindowContextCount(); }
/** * {@inheritDoc} */ @Override public boolean isUrlParameterSupported() { return CodiUtils.lookupConfigFromEnvironment(null, Boolean.class, super.isUrlParameterSupported()); }
/** * {@inheritDoc} */ @Override public int getMaxWindowContextCount() { return CodiUtils.lookupConfigFromEnvironment(null, Integer.class, super.getMaxWindowContextCount()); }
/** * {@inheritDoc} */ @Override public int getMaxWindowContextCount() { return CodiUtils.lookupConfigFromEnvironment(null, Integer.class, super.getMaxWindowContextCount()); }