Typical usage is registering all bean definitions first (possibly read from a bean definition file), before accessing beans. Bean definition lookup is therefore an inexpensive operation in a local bean definition table, operating on pre-built bean definition metadata objects.
Can be used as a standalone bean factory, or as a superclass for custom bean factories. Note that readers for specific bean definition formats are typically implemented separately rather than as bean factory subclasses: see for example {@link PropertiesBeanDefinitionReader} and{@link org.springframework.beans.factory.xml.XmlBeanDefinitionReader}.
For an alternative implementation of the {@link org.springframework.beans.factory.ListableBeanFactory} interface,have a look at {@link StaticListableBeanFactory}, which manages existing bean instances rather than creating new ones based on bean definitions. @author Rod Johnson @author Juergen Hoeller @author Sam Brannen @since 16 April 2001 @see StaticListableBeanFactory @see PropertiesBeanDefinitionReader @see org.springframework.beans.factory.xml.XmlBeanDefinitionReader
|
|