Why Spring ?
Goals of Spring:
- Light weight Development Model with support of java POJOs - To make simpler of EJBs.
- Loose coupling using Dependency Injection. - with the help of annotations and configurations, springs offer loose coupling features.
- Declarative Programming - In the support of Aspect oriented programming - which basically allows to add application's wide services.
- Reduce Boilerplate Code - Huge code reduction in the essence of utility classes.
1) Core Container : Contains below modules.
Core & Beans Modules - Inversion of Control, and Dependency Injection. It
provides bean factory to assist with beans. It avoid
programmatic singletons.
Context - On top of core bean's module - which is to lookup
objects which is in like similar to JNDI registry. It
inherits from beans module and supports
Internationalization, event propagation, resource
loading etc.
Expression Language : Powerful for querying and manipulating object
graph at run time. It's extension to Expression
Language from JSP2.1 . This language supports for
setting and getting the properties values, method
invocation, accessing the context of arrays, collections
and retrieval of objects binding from spring moc
container.
2) Data Access / Integration :
JDBS - Built in JDBC infrastructure, helps to remove tedious JDBC codings, and
parsing vendor specific error codes.
ORM - Integration layer for popular Object Relational Mappings APIs, JDO,
Hibernate and I practice etc.
OXM - Provides abstractions to support object/XML mappings , JAXB, JSTL etc.
JMS - For Producing and consuming Messages for MOM based applications.
TRANSACTIONS - Programatic and declarative programming
3) Web
Web Sockets -
Web Servlets - Initialization of IOC container
Web Structs - Support for classes integrating with structs and
Web Portlet - Portlet environments
4) Aspect Oriented Programming :
Logging, security, AspectJ.
5) Test
Prerequisites for Spring environment setup :
1) Download Eclipse and Create Eclipse project after extracting.
2) Download Spring Jar Files.
Download latest spring-framework-5.0.5.RELEASE-dist.zip from below link
https://repo.spring.io/release/org/springframework/spring/5.0.5.RELEASE/spring-framework-5.0.5.RELEASE-dist.zip
3) Download Common Logging Jar Files.
Download commons-logging-1.2-bin.zip from below link
https://commons.apache.org/proper/commons-logging/download_logging.cgi
4) Add the Jar files to Eclipse Project.
Scenario or use case :
Why Inversion of Control ?
No comments:
Post a Comment