@Configuration @ConditionalOnClass(value={org.elasticsearch.client.Client.class,org.springframework.data.elasticsearch.client.TransportClientFactoryBean.class,org.springframework.data.elasticsearch.client.NodeClientFactoryBean.class}) @EnableConfigurationProperties(value=ElasticsearchProperties.class) public class ElasticsearchAutoConfiguration extends Object implements DisposableBean
Auto-configuration
for Elasticsearch.Constructor and Description |
---|
ElasticsearchAutoConfiguration(ElasticsearchProperties properties) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
org.elasticsearch.client.Client |
elasticsearchClient() |
public ElasticsearchAutoConfiguration(ElasticsearchProperties properties)
@Bean @ConditionalOnMissingBean public org.elasticsearch.client.Client elasticsearchClient()
public void destroy() throws Exception
destroy
in interface DisposableBean
Exception
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.