3 - Difference between Bean Factory & Application Context | #BeanFactory #ApplicationContext #Spring

preview_player
Показать описание
#ApplicationContext #BeanFactory #springframework #DI #IOC
===========================
Bean Factory
===========================
Bean instantiation/wiring.
--- It exists for backward compatibility.
--- Manual BeanPostProcessor registration
--- Support Lazy loading – It instantiates bean when you call getBean() method.
--- It is OK for testing and non-production use.
===========================
Application Context
===========================
--- Bean instantiation/wiring.
--- Automatic BeanPostProcessor registration.
--- Automatic BeanFactoryPostProcessor registration.
--- Convenient MessageSource access (for i18n).
--- ApplicationEvent publication – can publish events to beans that are registered as listeners.
--- Support many enterprise services such JNDI access, EJB integration, remoting.
--- Support Aggressive loading – It instantiates Singleton bean when the container is started, It doesn’t wait for getBean() to be called.

Read the blog -

Рекомендации по теме
Комментарии
Автор

it will be better if you explained output

lifespin