Collection and sharing of, interview questions and answers asked in various interviews, faqs and articles.....
What are types of IoC containers? Explain them.
There are two types of IoC containers:
Bean Factory container: This is the simplest container providing basic support for DI .The
BeanFactory is usually preferred where the resources are limited like mobile devices or
applet based applications
Spring ApplicationContext Container: This container adds more enterprise-specific
functionality such as the ability to resolve textual messages from a properties file and the
ability to publish application events to interested event listeners.
Give an example of BeanFactory implementation.
The most commonly used BeanFactory implementation is the XmlBeanFactory class. This
container reads the configuration metadata from an XML file and uses it to create a fully
configured system or application.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment