BeanFactory :
- BeanFactory is an interface which has one concrete cubclass called XmlBeanFactory.
Following is the way to create BeanFactory container instance
BeanFactory bf=new XmlBeanFactory(res);
Resources may be of type ClasspathResource or FileSystemResources. - BeanFactory will be loaded lazily by default.
- BeanFactory container does not support annotation.
- BeanFactory does not support BeanPostProcessor.
- BeanFactory does not support Event publishing.
- BeanFactory does not provide a way to resolve message bundle.
- ApplicationContext is an interface which has 3 concrete subclass called
ClasspathXmlApplicationContext
FileSystemXmlApplicationContext
XmlWebApplicationContext - BeanFactory configured with ApplicationContext container will be loaded aggressively by default.
- ApplicationContext container do support annotation.
- ApplicationContext container do support BeanPostProcessor.
- Application context do provide a way to resolve message bundle.
No comments:
Post a Comment