|
1 | 1 | /*
|
2 |
| - * Copyright 2002-2012 the original author or authors. |
| 2 | + * Copyright 2002-2014 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.
|
|
16 | 16 |
|
17 | 17 | package org.springframework.beans.factory.config;
|
18 | 18 |
|
| 19 | +import java.util.Iterator; |
| 20 | + |
19 | 21 | import org.springframework.beans.BeansException;
|
20 | 22 | import org.springframework.beans.factory.ListableBeanFactory;
|
21 | 23 | import org.springframework.beans.factory.NoSuchBeanDefinitionException;
|
@@ -105,6 +107,20 @@ boolean isAutowireCandidate(String beanName, DependencyDescriptor descriptor)
|
105 | 107 | */
|
106 | 108 | BeanDefinition getBeanDefinition(String beanName) throws NoSuchBeanDefinitionException;
|
107 | 109 |
|
| 110 | + /** |
| 111 | + * Return a unified view over all bean names managed by this factory. |
| 112 | + * <p>Includes bean definition names as well as names of manually registered |
| 113 | + * singleton instances, with bean definition names consistently coming first, |
| 114 | + * analogous to how type/annotation specific retrieval of bean names works. |
| 115 | + * @return the composite iterator for the bean names view |
| 116 | + * @since 4.1.2 |
| 117 | + * @see #containsBeanDefinition |
| 118 | + * @see #registerSingleton |
| 119 | + * @see #getBeanNamesForType |
| 120 | + * @see #getBeanNamesForAnnotation |
| 121 | + */ |
| 122 | + Iterator<String> getBeanNamesIterator(); |
| 123 | + |
108 | 124 | /**
|
109 | 125 | * Freeze all bean definitions, signalling that the registered bean definitions
|
110 | 126 | * will not be modified or post-processed any further.
|
|
0 commit comments