A BeanFactory is like a factory class that contains a collection of beans. The BeanFactory holds Bean Definitions of multiple
beans within itself and then instantiates the bean whenever asked for by clients.
The BeanFactory is the actual container which instantiates, configures, and manages a number of beans. These beans typically
collaborate with one another, and thus have dependencies between themselves. These dependencies are reflected in the configuration data used
by the BeanFactory
BeanFactory also takes part in the life cycle of a bean, making calls to custom initialization and destruction methods.
|