Skip to content

Commit 4e296cc

Browse files
committed
DATAREDIS-583 - Adapt API in RedisRepositoryFactoryBean.
Related tickets: DATACMNS-891.
1 parent 21e6235 commit 4e296cc

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/main/java/org/springframework/data/redis/repository/support/RedisRepositoryFactoryBean.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
* configuration.
3030
*
3131
* @author Christoph Strobl
32+
* @author Oliver Gierke
3233
* @param <T> The repository type.
3334
* @param <S> The repository domain type.
3435
* @param <ID> The repository id type.
@@ -37,6 +38,15 @@
3738
public class RedisRepositoryFactoryBean<T extends Repository<S, ID>, S, ID extends Serializable>
3839
extends KeyValueRepositoryFactoryBean<T, S, ID> {
3940

41+
/**
42+
* Creates a new {@link RedisRepositoryFactoryBean} for the given repository interface.
43+
*
44+
* @param repositoryInterface must not be {@literal null}.
45+
*/
46+
public RedisRepositoryFactoryBean(Class<? extends T> repositoryInterface) {
47+
super(repositoryInterface);
48+
}
49+
4050
/*
4151
* (non-Javadoc)
4252
* @see org.springframework.data.keyvalue.repository.support.KeyValueRepositoryFactoryBean#createRepositoryFactory(org.springframework.data.keyvalue.core.KeyValueOperations, java.lang.Class, java.lang.Class)

0 commit comments

Comments
 (0)