All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hp.autonomy.searchcomponents.idol.answer.requests.ConversationRequestBuilderConfiguration Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2018 Open Text.
 *
 * Licensed under the MIT License (the "License"); you may not use this file
 * except in compliance with the License.
 *
 * The only warranties for products and services of Open Text and its affiliates
 * and licensors ("Open Text") are as may be set forth in the express warranty
 * statements accompanying such products and services. Nothing herein should be
 * construed as constituting an additional warranty. Open Text shall not be
 * liable for technical or editorial errors or omissions contained herein. The
 * information contained herein is subject to change without notice.
 */

package com.hp.autonomy.searchcomponents.idol.answer.requests;

import com.hp.autonomy.searchcomponents.idol.answer.ask.ConversationRequestBuilder;
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Scope;

import static com.hp.autonomy.searchcomponents.idol.answer.ask.ConversationAnswerServerService.CONVERSATION_REQUEST_BUILDER_BEAN_NAME;

/**
 * Defines default beans for builders for AnswerServer conversation request objects
 */
@Configuration
public class ConversationRequestBuilderConfiguration {
    @Bean(name = CONVERSATION_REQUEST_BUILDER_BEAN_NAME)
    @Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
    @ConditionalOnMissingBean(name = CONVERSATION_REQUEST_BUILDER_BEAN_NAME)
    public ConversationRequestBuilder getConversationRequestBuilder() {
        return ConversationRequestImpl.builder();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy