File tree Expand file tree Collapse file tree 2 files changed +8
-12
lines changed
src/main/java/org/springframework/data/repository/cdi Expand file tree Collapse file tree 2 files changed +8
-12
lines changed Original file line number Diff line number Diff line change 44
44
import org .springframework .data .repository .config .DefaultRepositoryConfiguration ;
45
45
import org .springframework .data .repository .config .RepositoryBeanNameGenerator ;
46
46
import org .springframework .data .repository .config .SpringDataAnnotationBeanNameGenerator ;
47
- import org .springframework .data .repository .query .QueryLookupStrategy ;
48
47
import org .springframework .lang .Nullable ;
49
48
import org .springframework .util .Assert ;
50
49
import org .springframework .util .ClassUtils ;
@@ -430,11 +429,5 @@ static enum DefaultCdiRepositoryConfiguration implements CdiRepositoryConfigurat
430
429
public String getRepositoryImplementationPostfix () {
431
430
return DefaultRepositoryConfiguration .DEFAULT_REPOSITORY_IMPLEMENTATION_POSTFIX ;
432
431
}
433
-
434
- @ Override
435
- public QueryLookupStrategy .Key getQueryLookupStrategy () {
436
- return DefaultRepositoryConfiguration .DEFAULT_QUERY_LOOKUP_STRATEGY ;
437
- }
438
-
439
432
}
440
433
}
Original file line number Diff line number Diff line change 16
16
17
17
package org .springframework .data .repository .cdi ;
18
18
19
+ import org .springframework .data .repository .config .DefaultRepositoryConfiguration ;
19
20
import org .springframework .data .repository .query .QueryLookupStrategy ;
20
21
21
22
/**
22
23
* Interface containing the configurable options for the Spring Data repository subsystem using CDI.
23
24
*
24
25
* @author Mark Paluch
26
+ * @author Fabian Henniges
25
27
*/
26
28
public interface CdiRepositoryConfiguration {
27
29
@@ -32,12 +34,13 @@ public interface CdiRepositoryConfiguration {
32
34
*/
33
35
String getRepositoryImplementationPostfix ();
34
36
35
-
36
37
/**
37
- * Return the strategy to lookup queries
38
+ * Return the strategy to lookup queries.
38
39
*
39
- * @return the lookup strategy to use
40
+ * @return the lookup strategy to use.
41
+ * @since 2.1
40
42
*/
41
- QueryLookupStrategy .Key getQueryLookupStrategy ();
42
-
43
+ default QueryLookupStrategy .Key getQueryLookupStrategy () {
44
+ return DefaultRepositoryConfiguration .DEFAULT_QUERY_LOOKUP_STRATEGY ;
45
+ }
43
46
}
You can’t perform that action at this time.
0 commit comments