architectural benefits of spring
TRANSCRIPT
8/11/2019 Architectural Benefits of Spring
http://slidepdf.com/reader/full/architectural-benefits-of-spring 1/9
8/11/2019 Architectural Benefits of Spring
http://slidepdf.com/reader/full/architectural-benefits-of-spring 2/9
1
Architectural benefits
Spring can effectively organize your middle tier obects! "hether or not you choose to use #$%.
Spring ta&es care of plumbing that "ould be left up to you if you use only Struts or other frame"or&s
geared to particular $'## APIs.
8/11/2019 Architectural Benefits of Spring
http://slidepdf.com/reader/full/architectural-benefits-of-spring 3/9
1
Architectural benefits
And "hile it is perhaps most valuable in the middle tier! Spring(s configuration management services
can be used in any architectural layer! in "hatever runtime environment.
Spring can eliminate the proliferation of Singletons seen on many proects. In my experience! this is
a maor problem! reducing testability and obect orientation.
8/11/2019 Architectural Benefits of Spring
http://slidepdf.com/reader/full/architectural-benefits-of-spring 4/9
1
Architectural benefits
Spring can eliminate the need to use a variety of custom properties file formats! by handling
configuration in a consistent "ay throughout applications and proects.
#ver "ondered "hat magic property &eys or system properties a particular class loo&s for! and had
to read the$avadocor even source code)
8/11/2019 Architectural Benefits of Spring
http://slidepdf.com/reader/full/architectural-benefits-of-spring 5/9
1
Architectural benefits
*ith Spring you simply loo& at the class(s $ava%ean properties or constructor arguments. The use of
Inversion of +ontrol and ,ependency Inection -discussed belo" helps achieve this simplification.
Spring can facilitate good programming practice by reducing the cost of programming to interfaces!
rather than classes! almost to zero.
8/11/2019 Architectural Benefits of Spring
http://slidepdf.com/reader/full/architectural-benefits-of-spring 6/9
1
Architectural benefits
Spring is designed so that applications built "ith it depend on as fe" of its APIs as possible. /ost
business obects in Spring applications have no dependency on Spring.
Applications built using Spring are very easy to unit test.
Spring can ma&e the use of #$% an implementation choice! rather than the determinant of
application architecture. 0ou can choose to implement business interfaces asP1$1sor
local#$%s"ithout affecting calling code.
8/11/2019 Architectural Benefits of Spring
http://slidepdf.com/reader/full/architectural-benefits-of-spring 7/9
1
Architectural benefits
Spring helps you solve many problems "ithout using #$%. Spring can provide an alternative to #$%
that(s appropriate for many applications.
2or example! Spring can use A1P to deliver declarative transaction management "ithout using an
#$% container3 even "ithout a $TA implementation! if you only need to "or& "ith a single database.
8/11/2019 Architectural Benefits of Spring
http://slidepdf.com/reader/full/architectural-benefits-of-spring 8/9
1
Architectural benefits
Spring provides a consistent frame"or& for data access! "hether using $,%+ or an 14/ product
such asTopLin&! 5ibernate or a $,1 implementation.
Spring provides a consistent! simple programming model in many areas! ma&ing it an ideal
architectural 6glue.6 0ou can see this consistency in the Spring approach to $,%+! $/S!$ava/ail!
$7,I and many other important APIs.
8/11/2019 Architectural Benefits of Spring
http://slidepdf.com/reader/full/architectural-benefits-of-spring 9/9
Thanks
facebook.com/apex.tgi
twitter.com/ApextgiNoida
pinterest.com/apextgi
Stay Connected with us for more chapters on JAVA