Difference Bean Factory and Application Context





             
Application   Context
Bean Factory
Application Context  supports  annotation based  configuration
Bean factory does not supports annotation based configuration
Application context can publish events to the bean which are registered as listeners
Listener are not supported by the Bean Factory
Supports  internationalization message   
Does not supports internationalization
By default it supports aggressive loading
By default it supports lazy loading







   






  • FileSystemXmlApplicationContext
     Beans loaded through the full path.
  • ClassPathXmlApplicationContext Beans loaded through the CLASSPATH
  • XMLWebApplicationContext and AnnotationConfigWebApplicationContext beans loaded through the web application context.
  • AnnotationConfigApplicationContext Loading Spring beans from Annotation based configuration.


  • Difference Bean Factory and Application Context   Difference  Bean Factory  and Application Context Reviewed by Mukesh Jha on 1:14 AM Rating: 5

    No comments:

    Add your comment

    All Right Reserved To Mukesh Jha.. Theme images by Jason Morrow. Powered by Blogger.