1
1
/*
2
- * Copyright 2002-2016 the original author or authors.
2
+ * Copyright 2002-2018 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -244,7 +244,9 @@ <T> Map<String, T> getBeansOfType(@Nullable Class<T> type, boolean includeNonSin
244
244
245
245
/**
246
246
* Find all names of beans whose {@code Class} has the supplied {@link Annotation}
247
- * type, without creating any bean instances yet.
247
+ * type, without creating corresponding bean instances yet.
248
+ * <p>Note that this method considers objects created by FactoryBeans, which means
249
+ * that FactoryBeans will get initialized in order to determine their object type.
248
250
* @param annotationType the type of annotation to look for
249
251
* @return the names of all matching beans
250
252
* @since 4.0
@@ -254,6 +256,8 @@ <T> Map<String, T> getBeansOfType(@Nullable Class<T> type, boolean includeNonSin
254
256
/**
255
257
* Find all beans whose {@code Class} has the supplied {@link Annotation} type,
256
258
* returning a Map of bean names with corresponding bean instances.
259
+ * <p>Note that this method considers objects created by FactoryBeans, which means
260
+ * that FactoryBeans will get initialized in order to determine their object type.
257
261
* @param annotationType the type of annotation to look for
258
262
* @return a Map with the matching beans, containing the bean names as
259
263
* keys and the corresponding bean instances as values
0 commit comments