Category: Javaskool Category
An ActionForm is a JavaBean that extends org.apache.struts.action.ActionForm. ActionForm maintains the session state for web application and the ActionForm object is automatically populated on the server side with data entered from a form on...
The three commonly used implementation of ‘Application Context’ are ClassPathXmlApplicationContext : It Loads context definition from an XML file located in the classpath, treating context definitions as classpath resources. The application context is loaded...
For a typical Spring Application we need the following files: An interface that defines the functions. An Implementation that contains properties, its setter and getter methods, functions etc., Spring AOP (Aspect Oriented Programming) A...
Bean life cycle in Spring Bean Factory Container is as follows: The spring container finds the bean’s definition from the XML file and instantiates the bean. Using the dependency injection, spring populates all of...
Spring and Hibernate can integrate using Spring’s SessionFactory called LocalSessionFactory. The integration process is of 3 steps. Configure the Hibernate SessionFactory Extend your DAO Implementation from HibernateDaoSupport Wire in Transaction Support with AOP
There are two approaches to Spring’s Hibernate integration: Inversion of Control with a HibernateTemplate and Callback Extending HibernateDaoSupport and Applying an AOP Interceptor
The act of creating associations between application components (beans) within the Spring container is reffered to as Bean wiring.
The Spring container is able to autowire relationships between collaborating beans. This means that it is possible to automatically let Spring resolve collaborators (other beans) for your bean by inspecting the contents of the...
Spring provides a custom JavaServer Faces VariableResolver implementation that extends the standard Java ServernFaces managed beans mechanism which lets you use JSF and Spring together. This variable resolver is called as DelegatingVariableResolver
JSF and Spring do share some of the same features, most noticeably in the area of IOC services. By declaring JSF managed-beans in the faces-config.xml configuration file, you allow the FacesServlet to instantiate that...
Recent Comments