If this is a {@link HierarchicalBeanFactory}, the return values will not take any BeanFactory hierarchy into account, but will relate only to the beans defined in the current factory. Use the {@link BeanFactoryUtils} helper classto consider beans in ancestor factories too.
The methods in this interface will just respect bean definitions of this factory. They will ignore any singleton beans that have been registered by other means like {@link org.springframework.beans.factory.config.ConfigurableBeanFactory}'s registerSingleton
method, with the exception of getBeanNamesOfType
and getBeansOfType
which will check such manually registered singletons too. Of course, BeanFactory's getBean
does allow transparent access to such special beans as well. However, in typical scenarios, all beans will be defined by external bean definitions anyway, so most applications don't need to worry about this differentation.
NOTE: With the exception of getBeanDefinitionCount
and containsBeanDefinition
, the methods in this interface are not designed for frequent invocation. Implementations may be slow.
@author Rod Johnson
@author Juergen Hoeller
@since 16 April 2001
@see HierarchicalBeanFactory
@see BeanFactoryUtils
|
|