@@ -114,19 +114,6 @@ public <T extends RepositoryConfigurationSource> Collection<RepositoryConfigurat
114
114
return result ;
115
115
}
116
116
117
- /**
118
- * Returns the {@link ClassLoader} to load repository interfaces for configuration inspection. Subclasses may override
119
- * this method to provide a customized class loader.
120
- *
121
- * @param loader must not be {@literal null}.
122
- * @return the {@link ClassLoader} for repository interfaces configuration inspection.
123
- * @since 2.1
124
- */
125
- @ Nullable
126
- protected ClassLoader getConfigurationInspectionClassLoader (ResourceLoader loader ) {
127
- return loader .getClassLoader ();
128
- }
129
-
130
117
/*
131
118
* (non-Javadoc)
132
119
* @see org.springframework.data.repository.config.RepositoryConfigurationExtension#getDefaultNamedQueryLocation()
@@ -188,9 +175,22 @@ protected Collection<Class<?>> getIdentifyingTypes() {
188
175
return Collections .emptySet ();
189
176
}
190
177
178
+ /**
179
+ * Returns the {@link ClassLoader} to load repository interfaces for configuration inspection. Subclasses may override
180
+ * this method to provide a customized class loader.
181
+ *
182
+ * @param loader must not be {@literal null}.
183
+ * @return the {@link ClassLoader} for repository interfaces configuration inspection.
184
+ * @since 2.1
185
+ */
186
+ @ Nullable
187
+ protected ClassLoader getConfigurationInspectionClassLoader (ResourceLoader loader ) {
188
+ return loader .getClassLoader ();
189
+ }
190
+
191
191
/**
192
192
* Sets the given source on the given {@link AbstractBeanDefinition} and registers it inside the given
193
- * {@link BeanDefinitionRegistry}. For {@link BeanDefinition}s to be registerd once-and-only-once for all
193
+ * {@link BeanDefinitionRegistry}. For {@link BeanDefinition}s to be registered once-and-only-once for all
194
194
* configuration elements (annotation or XML), prefer calling
195
195
* {@link #registerIfNotAlreadyRegistered(AbstractBeanDefinition, BeanDefinitionRegistry, String, Object)} with a
196
196
* dedicated bean name to avoid the bead definition being registered multiple times. *
@@ -314,11 +314,12 @@ protected boolean useRepositoryConfiguration(RepositoryMetadata metadata) {
314
314
* {@link ClassLoader}.
315
315
*
316
316
* @param configuration must not be {@literal null}.
317
- * @param classLoader must not be {@literal null}.
317
+ * @param classLoader can be {@literal null}.
318
318
* @return the repository interface or {@literal null} if it can't be loaded.
319
319
*/
320
320
@ Nullable
321
- private Class <?> loadRepositoryInterface (RepositoryConfiguration <?> configuration , ClassLoader classLoader ) {
321
+ private Class <?> loadRepositoryInterface (RepositoryConfiguration <?> configuration ,
322
+ @ Nullable ClassLoader classLoader ) {
322
323
323
324
String repositoryInterface = configuration .getRepositoryInterface ();
324
325
0 commit comments