Skip to content

Commit 9754d70

Browse files
committed
DATAES-315 - Adapt API in ElasticsearchRepositoryFactoryBean.
Related ticket: DATACMNS-891.
1 parent c8c3e0a commit 9754d70

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/main/java/org/springframework/data/elasticsearch/repository/support/ElasticsearchRepositoryFactoryBean.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,15 @@ public class ElasticsearchRepositoryFactoryBean<T extends Repository<S, ID>, S,
3535

3636
private ElasticsearchOperations operations;
3737

38+
/**
39+
* Creates a new {@link ElasticsearchRepositoryFactoryBean} for the given repository interface.
40+
*
41+
* @param repositoryInterface must not be {@literal null}.
42+
*/
43+
public ElasticsearchRepositoryFactoryBean(Class<? extends T> repositoryInterface) {
44+
super(repositoryInterface);
45+
}
46+
3847
/**
3948
* Configures the {@link ElasticsearchOperations} to be used to create Elasticsearch repositories.
4049
*

0 commit comments

Comments
 (0)