Skip to content

Commit 352bbd9

Browse files
remove identifying annotations
1 parent 8202c2f commit 352bbd9

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/main/java/org/springframework/data/repository/config/RepositoryConfigurationExtension.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -79,17 +79,6 @@ <T extends RepositoryConfigurationSource> Collection<RepositoryConfiguration<T>>
7979
*/
8080
String getRepositoryFactoryBeanClassName();
8181

82-
/**
83-
* Return the annotations to scan domain types for when evaluating repository interfaces for store assignment. Modules
84-
* should return the annotations that identify a domain type as managed by the store explicitly.
85-
*
86-
* @return
87-
* @since 3.0
88-
*/
89-
default Collection<Class<? extends Annotation>> getIdentifyingAnnotations() {
90-
return Collections.emptySet();
91-
}
92-
9382
/**
9483
* Callback to register additional bean definitions for a {@literal repositories} root node. This usually includes
9584
* beans you have to set up once independently of the number of repositories to be created. Will be called before any

src/main/java/org/springframework/data/repository/config/RepositoryConfigurationExtensionSupport.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,17 @@ public void postProcess(BeanDefinitionBuilder builder, AnnotationRepositoryConfi
110110

111111
public void postProcess(BeanDefinitionBuilder builder, XmlRepositoryConfigurationSource config) {}
112112

113+
/**
114+
* Return the annotations to scan domain types for when evaluating repository interfaces for store assignment. Modules
115+
* should return the annotations that identify a domain type as managed by the store explicitly.
116+
*
117+
* @return
118+
* @since 1.9
119+
*/
120+
protected Collection<Class<? extends Annotation>> getIdentifyingAnnotations() {
121+
return Collections.emptySet();
122+
}
123+
113124
/**
114125
* Returns the types that indicate a store match when inspecting repositories for strict matches.
115126
*

0 commit comments

Comments
 (0)