Define Bean Factory

Elaborate Bean Factory?Briefly.

E

Expert

Verified

BeanFactory is as a factory class which comprises a collection of beans. BeanFactory holds Bean Definitions of the multiple beans within itself and then instantiates bean when asked by clients.
i.) BeanFactory can create associations among collaborating objects such as they are instantiated. This eliminates burden of configuration from the bean itself and beans client.
ii.) BeanFactory also participates in life cycle of a bean, making calls to the custom initialization and destruction methods.

   Related Questions in JAVA Programming

©TutorsGlobe All rights reserved 2022-2023.