@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() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
org.elasticsearch.client.Client |
elasticsearchClient() |
@Bean @ConditionalOnMissingBean public org.elasticsearch.client.Client elasticsearchClient()
public void destroy() throws Exception
destroy
in interface DisposableBean
Exception
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.