- Git
Java
OCJP
Topics:
Design Patterns being used in Spring framework :
-
MVC - The advantage with Spring MVC is that your controllers are POJOs as opposed to being servlets. This makes for easier testing of controllers.
-
Front controller - Spring provides “DispatcherServlet” to ensure an incoming request gets dispatched to your controllers.
-
View Helper - Spring has a number of custom JSP tags, and velocity macros, to assist in separating code from presentation in views.
-
Singleton - Beans defined in spring config files are singletons by default.
-
Prototype - Instance type can be prototype.
-
Factory - Used for loading beans through BeanFactory and Application context.
-
Builder - Spring provides programmatic means of constructing BeanDefinitions using the builder pattern through Class “BeanDefinitionBuilder”.
-
Template - Used extensively to deal with boilerplate repeated code (such as closing connections cleanly, etc..). For example JdbcTemplate.
-
Proxy - Used in AOP & Remoting.
- DI/IOC - It is central to the whole BeanFactory/ApplicationContext stuff. Links:
- Design pattern with Spring 1
- Design pattern with Spring 2
- Design pattern with Spring 3
- Design pattern with Spring 4
- Design pattern with Spring 5
Technology
- Meteor