mirror of
https://github.com/spring-projects/spring-data-elasticsearch.git
synced 2025-07-04 01:32:11 +00:00
DATAES-342 - Adapt to API changes in RepositoryConfigurationExtensionSupport.
This commit is contained in:
parent
ff18271917
commit
7f995b38f9
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2013 the original author or authors.
|
* Copyright 2013-2017 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -38,15 +38,16 @@ import org.w3c.dom.Element;
|
|||||||
*
|
*
|
||||||
* @author Rizwan Idrees
|
* @author Rizwan Idrees
|
||||||
* @author Mohsin Husen
|
* @author Mohsin Husen
|
||||||
|
* @author Mark Paluch
|
||||||
*/
|
*/
|
||||||
public class ElasticsearchRepositoryConfigExtension extends RepositoryConfigurationExtensionSupport {
|
public class ElasticsearchRepositoryConfigExtension extends RepositoryConfigurationExtensionSupport {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* (non-Javadoc)
|
* (non-Javadoc)
|
||||||
* @see org.springframework.data.repository.config.RepositoryConfigurationExtension#getRepositoryFactoryClassName()
|
* @see org.springframework.data.repository.config.RepositoryConfigurationExtension#getRepositoryFactoryBeanClassName()
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public String getRepositoryFactoryClassName() {
|
public String getRepositoryFactoryBeanClassName() {
|
||||||
return ElasticsearchRepositoryFactoryBean.class.getName();
|
return ElasticsearchRepositoryFactoryBean.class.getName();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -87,7 +88,7 @@ public class ElasticsearchRepositoryConfigExtension extends RepositoryConfigurat
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected Collection<Class<? extends Annotation>> getIdentifyingAnnotations() {
|
protected Collection<Class<? extends Annotation>> getIdentifyingAnnotations() {
|
||||||
return Collections.<Class<? extends Annotation>>singleton(Document.class);
|
return Collections.<Class<? extends Annotation>> singleton(Document.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -96,6 +97,6 @@ public class ElasticsearchRepositoryConfigExtension extends RepositoryConfigurat
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected Collection<Class<?>> getIdentifyingTypes() {
|
protected Collection<Class<?>> getIdentifyingTypes() {
|
||||||
return Arrays.<Class<?>>asList(ElasticsearchRepository.class, ElasticsearchCrudRepository.class);
|
return Arrays.<Class<?>> asList(ElasticsearchRepository.class, ElasticsearchCrudRepository.class);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user