1
1
/*
2
- * Copyright 2015 the original author or authors.
2
+ * Copyright 2015-2016 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
18
18
import java .io .Serializable ;
19
19
20
20
import org .springframework .beans .factory .FactoryBean ;
21
+ import org .springframework .data .keyvalue .core .KeyValueOperations ;
21
22
import org .springframework .data .keyvalue .repository .support .KeyValueRepositoryFactoryBean ;
22
23
import org .springframework .data .repository .Repository ;
23
- import org .springframework .data .repository .core . support . RepositoryFactorySupport ;
24
+ import org .springframework .data .repository .query . parser . AbstractQueryCreator ;
24
25
25
26
/**
26
27
* Adapter for Springs {@link FactoryBean} interface to allow easy setup of {@link RedisRepositoryFactory} via Spring
@@ -37,10 +38,11 @@ public class RedisRepositoryFactoryBean<T extends Repository<S, ID>, S, ID exten
37
38
38
39
/*
39
40
* (non-Javadoc)
40
- * @see org.springframework.data.repository.core. support.RepositoryFactoryBeanSupport #createRepositoryFactory()
41
+ * @see org.springframework.data.keyvalue. repository.support.KeyValueRepositoryFactoryBean #createRepositoryFactory(org.springframework.data.keyvalue.core.KeyValueOperations, java.lang.Class )
41
42
*/
42
43
@ Override
43
- protected RepositoryFactorySupport createRepositoryFactory () {
44
- return new RedisRepositoryFactory (getOperations (), getQueryCreator ());
44
+ protected RedisRepositoryFactory createRepositoryFactory (KeyValueOperations operations ,
45
+ Class <? extends AbstractQueryCreator <?, ?>> queryCreator ) {
46
+ return new RedisRepositoryFactory (operations , queryCreator );
45
47
}
46
48
}
0 commit comments