@@ -125,13 +125,12 @@ protected SpringFactoriesLoader(@Nullable ClassLoader classLoader, Map<String, L
125
125
* Load and instantiate the factory implementations of the given type from
126
126
* {@value #FACTORIES_RESOURCE_LOCATION}, using the configured class loader
127
127
* and a default argument resolver that expects a no-arg constructor.
128
- * <p>The returned factories are sorted through {@link AnnotationAwareOrderComparator}.
128
+ * <p>The returned factories are sorted using {@link AnnotationAwareOrderComparator}.
129
129
* <p>If a custom instantiation strategy is required, use {@code load(...)}
130
130
* with a custom {@link ArgumentResolver ArgumentResolver} and/or
131
131
* {@link FailureHandler FailureHandler}.
132
- * <p>As of Spring Framework 5.3, if duplicate implementation class names are
133
- * discovered for a given factory type, only one instance of the duplicated
134
- * implementation type will be instantiated.
132
+ * <p>If duplicate implementation class names are discovered for a given factory
133
+ * type, only one instance of the duplicated implementation type will be instantiated.
135
134
* @param factoryType the interface or abstract class representing the factory
136
135
* @throws IllegalArgumentException if any factory implementation class cannot
137
136
* be loaded or if an error occurs while instantiating any factory
@@ -145,10 +144,9 @@ public <T> List<T> load(Class<T> factoryType) {
145
144
* Load and instantiate the factory implementations of the given type from
146
145
* {@value #FACTORIES_RESOURCE_LOCATION}, using the configured class loader
147
146
* and the given argument resolver.
148
- * <p>The returned factories are sorted through {@link AnnotationAwareOrderComparator}.
149
- * <p>As of Spring Framework 5.3, if duplicate implementation class names are
150
- * discovered for a given factory type, only one instance of the duplicated
151
- * implementation type will be instantiated.
147
+ * <p>The returned factories are sorted using {@link AnnotationAwareOrderComparator}.
148
+ * <p>If duplicate implementation class names are discovered for a given factory
149
+ * type, only one instance of the duplicated implementation type will be instantiated.
152
150
* @param factoryType the interface or abstract class representing the factory
153
151
* @param argumentResolver strategy used to resolve constructor arguments by their type
154
152
* @throws IllegalArgumentException if any factory implementation class cannot
@@ -163,10 +161,9 @@ public <T> List<T> load(Class<T> factoryType, @Nullable ArgumentResolver argumen
163
161
* Load and instantiate the factory implementations of the given type from
164
162
* {@value #FACTORIES_RESOURCE_LOCATION}, using the configured class loader
165
163
* with custom failure handling provided by the given failure handler.
166
- * <p>The returned factories are sorted through {@link AnnotationAwareOrderComparator}.
167
- * <p>As of Spring Framework 5.3, if duplicate implementation class names are
168
- * discovered for a given factory type, only one instance of the duplicated
169
- * implementation type will be instantiated.
164
+ * <p>The returned factories are sorted using {@link AnnotationAwareOrderComparator}.
165
+ * <p>If duplicate implementation class names are discovered for a given factory
166
+ * type, only one instance of the duplicated implementation type will be instantiated.
170
167
* <p>For any factory implementation class that cannot be loaded or error that
171
168
* occurs while instantiating it, the given failure handler is called.
172
169
* @param factoryType the interface or abstract class representing the factory
@@ -182,10 +179,9 @@ public <T> List<T> load(Class<T> factoryType, @Nullable FailureHandler failureHa
182
179
* {@value #FACTORIES_RESOURCE_LOCATION}, using the configured class loader,
183
180
* the given argument resolver, and custom failure handling provided by the given
184
181
* failure handler.
185
- * <p>The returned factories are sorted through {@link AnnotationAwareOrderComparator}.
186
- * <p>As of Spring Framework 5.3, if duplicate implementation class names are
187
- * discovered for a given factory type, only one instance of the duplicated
188
- * implementation type will be instantiated.
182
+ * <p>The returned factories are sorted using {@link AnnotationAwareOrderComparator}.
183
+ * <p>If duplicate implementation class names are discovered for a given factory
184
+ * type, only one instance of the duplicated implementation type will be instantiated.
189
185
* <p>For any factory implementation class that cannot be loaded or error that
190
186
* occurs while instantiating it, the given failure handler is called.
191
187
* @param factoryType the interface or abstract class representing the factory
@@ -235,12 +231,11 @@ private List<String> loadFactoryNames(Class<?> factoryType) {
235
231
/**
236
232
* Load and instantiate the factory implementations of the given type from
237
233
* {@value #FACTORIES_RESOURCE_LOCATION}, using the given class loader.
238
- * <p>The returned factories are sorted through {@link AnnotationAwareOrderComparator}.
239
- * <p>As of Spring Framework 5.3, if duplicate implementation class names are
240
- * discovered for a given factory type, only one instance of the duplicated
241
- * implementation type will be instantiated.
234
+ * <p>The returned factories are sorted using {@link AnnotationAwareOrderComparator}.
235
+ * <p>If duplicate implementation class names are discovered for a given factory
236
+ * type, only one instance of the duplicated implementation type will be instantiated.
242
237
* <p>For more advanced factory loading with {@link ArgumentResolver} or
243
- * {@link FailureHandler} support use {@link #forDefaultResourceLocation(ClassLoader)}
238
+ * {@link FailureHandler} support, use {@link #forDefaultResourceLocation(ClassLoader)}
244
239
* to obtain a {@link SpringFactoriesLoader} instance.
245
240
* @param factoryType the interface or abstract class representing the factory
246
241
* @param classLoader the ClassLoader to use for loading (can be {@code null}
@@ -256,9 +251,8 @@ public static <T> List<T> loadFactories(Class<T> factoryType, @Nullable ClassLoa
256
251
* Load the fully qualified class names of factory implementations of the
257
252
* given type from {@value #FACTORIES_RESOURCE_LOCATION}, using the given
258
253
* class loader.
259
- * <p>As of Spring Framework 5.3, if a particular implementation class name
260
- * is discovered more than once for the given factory type, duplicates will
261
- * be ignored.
254
+ * <p>If a particular implementation class name is discovered more than once
255
+ * for the given factory type, duplicates will be ignored.
262
256
* @param factoryType the interface or abstract class representing the factory
263
257
* @param classLoader the ClassLoader to use for loading resources; can be
264
258
* {@code null} to use the default
0 commit comments