Spring / Spring module questions
1. Explain the Core container module of Spring framework.
This module provides the fundamental functionality of the spring framework. A primary component of the core container module is the BeanFactory which is considered as the heart of any spring-based application....
2. What is the Application context module of Spring framework?
The Application context module enables spring as a functional framework. This module extends the concept of BeanFactory, provides the support for internationalization (I18N) messages, application lifecycle events and validation.
3. Describe AOP module in Spring framework.
Aspect Oriented Programming (AOP) enable OOP to have additional functionalities by intercepting across application modules/features. The key unit of modularity in OOP is the class, whereas in AOP the unit of modularity is the aspect....
4. What are the features made available in different spring versions.
Annotations driven configuration is introduced in spring 2.5. Spring 3 incorporated Java 5 features.
5. Spring framework: Explain the JDBC abstraction and DAO module
JDBC abstraction and DAO module helps keep up the database code clean and simple, prevent problems that result from a failure to close database resources like connections. It provides a layer of meaningful exceptions on top of the error messages...
6. Spring framework:Explain the object/relational mapping integration module.
Spring supports use of an object relational mapping (ORM) tool over JDBC by providing the ORM module. Spring provides support to enable several popular ORM frameworks, including Hibernate, JDO, and iBATIS SQL Maps....
7. Spring framework: Explain the web module.
The Spring web module built on the application context module, provides a context that is appropriate for web-based applications. This module also contains support for several web-oriented tasks such as transparently handling multipart requests for file uploads and programmatic binding...
8. Spring framework: Explain the Spring MVC module.
MVC framework is provided by Spring for building web applications. Spring can easily be integrated with other MVC frameworks, but Spring?s MVC framework is a better choice, since it uses IoC to provide for a clean separation of controller logic...
9. What are the implementations of the ApplicationContext in Spring framework?
The FileSystemXmlApplicationContext container loads the definition of the beans from the Configuration XML file. The full path of the XML bean configuration file must be provided to the constructor....
10. Difference between applicationContext.xml and spring-servlet.xml in Spring Framework.
Spring allows you define multiple contexts in a parent-child hierarchy. The applicationContext.xml defines the beans for the root webapp context, the context associated with the web application....
11. How do you implement inheritance in bean definition?
Bean definition inheritance can be implemented by specifying parent property of the bean equal to its parent bean definition id. This bean class must have extended itself from the parent bean class.