@Configuration
@EnableConfigurationProperties(value={NlpClientProperties.class,DialogFlowV1Properties.class,DialogFlowV2Properties.class})
public class NlpClientConfiguration
extends Object
| Constructor and Description |
|---|
NlpClientConfiguration(NlpClientProperties nlpClientProperties,
DialogFlowV1Properties dialogFlowV1Properties,
DialogFlowV2Properties dialogFlowV2Properties) |
| Modifier and Type | Method and Description |
|---|---|
NlpEngineAccessor |
defaultNlpEngineAccessor(org.springframework.web.client.RestTemplate restTemplate) |
void |
init() |
NlpClient |
nlpClient(NlpEngineAccessor nlpEngineAccessor,
com.botscrew.botframework.container.IntentContainer intentContainer,
List<NlpInterceptor<PreNlpResponseProcessingAction>> preNlpResponseProcessingInterceptors) |
public NlpClientConfiguration(NlpClientProperties nlpClientProperties, DialogFlowV1Properties dialogFlowV1Properties, DialogFlowV2Properties dialogFlowV2Properties)
@PostConstruct public void init()
@Bean(value="defaultNlpEngineAccessor") public NlpEngineAccessor defaultNlpEngineAccessor(org.springframework.web.client.RestTemplate restTemplate)
@Bean public NlpClient nlpClient(@Qualifier(value="defaultNlpEngineAccessor") NlpEngineAccessor nlpEngineAccessor, com.botscrew.botframework.container.IntentContainer intentContainer, @Autowired(required=false) List<NlpInterceptor<PreNlpResponseProcessingAction>> preNlpResponseProcessingInterceptors)
Copyright © 2018. All rights reserved.