Showing posts with label Application Context. Show all posts
Showing posts with label Application Context. Show all posts

Friday, March 15, 2019

[Spring Interview Question] - Difference between BeanFactory and ApplicationContext in Spring?



BeanFactory ApplicationContext
Does not support the Annotation based dependency Injection. Support Annotation based dependency Injection.-@Autowired, @PreDestroy
Does not support. Can publish events to beans that are registered as listeners.
Does not support way to access Message Bundle(internationalization (I18N). Support internationalization (I18N) messages.
Does not support. Support many enterprise services such JNDI access, EJB integration, remoting.
By default its support Lazy loading. its By default support Aggresive loading.