Introduction To The Spring: Vamsi Mohan.V
Introduction To The Spring: Vamsi Mohan.V
Vamsi Mohan.V
Overview
Introduction
Spring Framework History
Started 2002/2003 by Rod Johnson and
Juergen Holler
Started as a framework developed around
Rod Johnson’s book Expert One-on-One
J2EE Design and Development
Spring 1.0 Released March 2004
2004/2005 Spring is emerging as a
leading full-stack Java/J2EE application
framework
Latest Spring releases
Spring Framework 3.0.5.RELEASE is the current
production release (requires Java 1.5+)
Can be downloaded from
http://www.springsource.org/download
Spring Framework 2.5.6.SEC02 is the latest Spring 2.5.x
release (compatible with Java 1.4+)
Spring Framework 2.0.8 is the latest Spring 2.0.x release
(compatible with Java 1.3+)
Spring Mission Statement
J2EE should be easier to use
OO design is more important than any
implementation technology, such as J2EE.
Testability is essential, and a framework such as
Spring should help make your code easier to
test.
Spring should not compete with good existing
solutions, but should foster integration.
What is the Spring Framework?
A lightweight non-intrusive framework which addresses various tiers in a
J2EE application.
Note: Spring distribution comes as one big jar file and alternatively as a series of smaller jars broken
out along the above lines (so you can include only what you need)
BeanFactories
A BeanFactory is typically configured in an XML file
with the root element: <beans>
<beans>
<bean id=“widgetService”
class=“com.zabada.base.WidgetService”>
<property name=“poolSize”>
<!—-property value here-->
</property>
</bean>
</beans>
<property name=“name”><value>Jim</value></property>
calls
setWidgetDAO(myWidgetDAO)
where myWidgetDAO is another
bean defined in the configuration