Skip to content

Commit 7f995b3

Browse files
committed
DATAES-342 - Adapt to API changes in RepositoryConfigurationExtensionSupport.
1 parent ff18271 commit 7f995b3

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/main/java/org/springframework/data/elasticsearch/repository/config/ElasticsearchRepositoryConfigExtension.java

+8-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2013 the original author or authors.
2+
* Copyright 2013-2017 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -38,15 +38,16 @@
3838
*
3939
* @author Rizwan Idrees
4040
* @author Mohsin Husen
41+
* @author Mark Paluch
4142
*/
4243
public class ElasticsearchRepositoryConfigExtension extends RepositoryConfigurationExtensionSupport {
4344

4445
/*
4546
* (non-Javadoc)
46-
* @see org.springframework.data.repository.config.RepositoryConfigurationExtension#getRepositoryFactoryClassName()
47+
* @see org.springframework.data.repository.config.RepositoryConfigurationExtension#getRepositoryFactoryBeanClassName()
4748
*/
4849
@Override
49-
public String getRepositoryFactoryClassName() {
50+
public String getRepositoryFactoryBeanClassName() {
5051
return ElasticsearchRepositoryFactoryBean.class.getName();
5152
}
5253

@@ -59,7 +60,7 @@ protected String getModulePrefix() {
5960
return "elasticsearch";
6061
}
6162

62-
/*
63+
/*
6364
* (non-Javadoc)
6465
* @see org.springframework.data.repository.config.RepositoryConfigurationExtensionSupport#postProcess(org.springframework.beans.factory.support.BeanDefinitionBuilder, org.springframework.data.repository.config.AnnotationRepositoryConfigurationSource)
6566
*/
@@ -70,7 +71,7 @@ public void postProcess(BeanDefinitionBuilder builder, AnnotationRepositoryConfi
7071
builder.addPropertyReference("elasticsearchOperations", attributes.getString("elasticsearchTemplateRef"));
7172
}
7273

73-
/*
74+
/*
7475
* (non-Javadoc)
7576
* @see org.springframework.data.repository.config.RepositoryConfigurationExtensionSupport#postProcess(org.springframework.beans.factory.support.BeanDefinitionBuilder, org.springframework.data.repository.config.XmlRepositoryConfigurationSource)
7677
*/
@@ -87,7 +88,7 @@ public void postProcess(BeanDefinitionBuilder builder, XmlRepositoryConfiguratio
8788
*/
8889
@Override
8990
protected Collection<Class<? extends Annotation>> getIdentifyingAnnotations() {
90-
return Collections.<Class<? extends Annotation>>singleton(Document.class);
91+
return Collections.<Class<? extends Annotation>> singleton(Document.class);
9192
}
9293

9394
/*
@@ -96,6 +97,6 @@ protected Collection<Class<? extends Annotation>> getIdentifyingAnnotations() {
9697
*/
9798
@Override
9899
protected Collection<Class<?>> getIdentifyingTypes() {
99-
return Arrays.<Class<?>>asList(ElasticsearchRepository.class, ElasticsearchCrudRepository.class);
100+
return Arrays.<Class<?>> asList(ElasticsearchRepository.class, ElasticsearchCrudRepository.class);
100101
}
101102
}

0 commit comments

Comments
 (0)