The Spring Framework is an open source application framework that aims to make J2EE development easier. Unlike single-tier frameworks, such as Struts or Hibernate, Spring aims to help structure whole applications in a consistent, productive manner, pulling together best-of-breed single-tier frameworks to create a coherent architecture. The technolo...

Read More

Dependency Injection goes a long way towards delivering the ideal of a fully featured application framework enabling a POJO programming model. However, configuration management isn't the only issue; you also need to provide declarative services to objects. It''s a great start to be able to configure POJOs-even with a rich network of collaborators-w...

Read More

Handler interceptors are used when you want to apply specific functionality to certain requests. Handler Interceptors should implement the interface HandlerInterceptor. Three methods are defined: preHandle(..) is called before the actual handler is executed; postHandle(..) is called after the handler is executed; afterCompletion(..) is called after...

Read More

DispatcherServlet acts as the front controller. Simplified actions taken by DispatcherServlet are listed below: STEP 1: All requests arrive at the DispatcherServlet (Front Controller). STEP 2: DispatcherServlet resolves theme and locale as configured. STEP 3: Find’s appropriate Controller (Handler) to handle the request. (pre-processors and post-pr...

Read More

Different types of scope for Spring Bean are listed below:  singleton : Return a single bean instance per Spring IOC container. prototype : Return a new bean instance each time when requested. request : Return a single bean instance per HTTP request. session : Return a single bean instance per HTTP session. global session : Return a single bean ins...

Read More

Dependency Injection (DI) refers to the process of supplying an external dependency to a software component. DI can help make your code architecturally pure. It aids in design by interface as well as test-driven development by providing a consistent way to inject dependencies. For example, a data access object (DAO) may depend on a database connect...

Read More

A BeanFactory is like a factory class that contains a collection of beans. The BeanFactory holds bean definitions of multiple beans within itself and then instantiates the bean whenever asked for by clients. BeanFactory is able to create associations between collaborating objects as they are instantiated. This removes the burden of configuration fr...

Read More

A BeanFactory is fine to simple applications, but to take advantage of the full power of the Spring framework, you may want to move up to Springs more advanced container, the Application Context. On the surface, an application context is same as a bean factory. Both load bean definitions, wire beans together, and dispense beans upon request. But it...

Read More

The three commonly used implementation of Application Context as below   ClassPathXmlApplicationContext : It Loads context definition from an XML file located in the classpath, treating context definitions as classpath resources. The application context is loaded from the application's classpath by using the code. ApplicationContext context = new...

Read More

Different types of advice available in AOP are as below: Before advice: Advice that executes before a join point, but which does not have the ability to prevent execution flow proceeding to the join point (unless it throws an exception). After returning advice: Advice to be executed after a join point completes normally: for example, if a method re...

Read More

FOLLOW US ON LinkedIn



Explore Tutu'rself