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 4444import org .springframework .data .repository .config .DefaultRepositoryConfiguration ;
4545import org .springframework .data .repository .config .RepositoryBeanNameGenerator ;
4646import org .springframework .data .repository .config .SpringDataAnnotationBeanNameGenerator ;
47- import org .springframework .data .repository .query .QueryLookupStrategy ;
4847import org .springframework .lang .Nullable ;
4948import org .springframework .util .Assert ;
5049import org .springframework .util .ClassUtils ;
@@ -430,11 +429,5 @@ static enum DefaultCdiRepositoryConfiguration implements CdiRepositoryConfigurat
430429 public String getRepositoryImplementationPostfix () {
431430 return DefaultRepositoryConfiguration .DEFAULT_REPOSITORY_IMPLEMENTATION_POSTFIX ;
432431 }
433-
434- @ Override
435- public QueryLookupStrategy .Key getQueryLookupStrategy () {
436- return DefaultRepositoryConfiguration .DEFAULT_QUERY_LOOKUP_STRATEGY ;
437- }
438-
439432 }
440433}
Original file line number Diff line number Diff line change 1616
1717package org .springframework .data .repository .cdi ;
1818
19+ import org .springframework .data .repository .config .DefaultRepositoryConfiguration ;
1920import org .springframework .data .repository .query .QueryLookupStrategy ;
2021
2122/**
2223 * Interface containing the configurable options for the Spring Data repository subsystem using CDI.
2324 *
2425 * @author Mark Paluch
26+ * @author Fabian Henniges
2527 */
2628public interface CdiRepositoryConfiguration {
2729
@@ -32,12 +34,13 @@ public interface CdiRepositoryConfiguration {
3234 */
3335 String getRepositoryImplementationPostfix ();
3436
35-
3637 /**
37- * Return the strategy to lookup queries
38+ * Return the strategy to lookup queries.
3839 *
39- * @return the lookup strategy to use
40+ * @return the lookup strategy to use.
41+ * @since 2.1
4042 */
41- QueryLookupStrategy .Key getQueryLookupStrategy ();
42-
43+ default QueryLookupStrategy .Key getQueryLookupStrategy () {
44+ return DefaultRepositoryConfiguration .DEFAULT_QUERY_LOOKUP_STRATEGY ;
45+ }
4346}
You can’t perform that action at this time.
0 commit comments