Core Container: BeanFactory, ApplicationContext and Configuration Metadata
Learn Core Container: BeanFactory, ApplicationContext and Configuration Metadata (Phase 1 · Spring Framework Fundamentals (Core), Spring Core) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
BeanFactory • BeanFactory is the root interface of the IoC container : getBean(name|type) , containsBean , isSingleton , getType . The main implementation is DefaultListableBeanFactory . It provides dependency injection and bean lifecycle and lazily instantiates beans (on first getBean ), but offers no enterprise features by itself. • Use directly only in constrained environments; applications use ApplicationContext .