Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
30Activity
0 of .
Results for:
No results containing your search query
P. 1
SpringFramework 3.0

SpringFramework 3.0

Ratings: (0)|Views: 1,924 |Likes:
Published by Fede
Official documentation of SpringFramework version 3.0.0.RC2
Official documentation of SpringFramework version 3.0.0.RC2

More info:

Published by: Fede on Nov 19, 2009
Copyright:Traditional Copyright: All rights reserved

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF or read online from Scribd
See more
See less

11/06/2012

pdf

original

 
Reference Documentation
3.0
Copyright
©
2004-2009 Rod Johnson, Juergen Hoeller, Keith Donald, Colin Sampaleanu, RobHarrop, Alef Arendsen, Thomas Risberg, Darren Davison, Dmitriy Kopylenko, Mark Pollack,Thierry Templier, Erwin Vervaet, Portia Tung, Ben Hale, Adrian Colyer, John Lewis, CostinLeau, Mark Fisher, Sam Brannen, Ramnivas Laddad, Arjen Poutsma, Chris Beams, TareqAbedrabbo, Andy Clement
Copies of this document may be made for your own use and for distribution to others, provided that you do not charge any fee for such copies and further provided that each copy contains this Copyright Notice, whether distributed in print or electronically.
 
Table of Contents
I. Overview of Spring Framework ..............................................................................................11. Introduction to Spring Framework ..................................................................................21.1. Dependency Injection and Inversion of Control....................................................21.2. Modules............................................................................................................3Core Container.................................................................................................3Data Access/Integration....................................................................................4Web.................................................................................................................4AOP and Instrumentation..................................................................................5Test.................................................................................................................51.3. Usage scenarios.................................................................................................5Dependency Management and Naming Conventions...........................................9Spring Dependencies and Depending on Spring........................................11Maven Dependency Management............................................................12Ivy Dependency Management.................................................................13Logging.........................................................................................................14Not Using Commons Logging.................................................................14Using SLF4J..........................................................................................15Using Log4J...........................................................................................16II. What's New in Spring 3.0...................................................................................................182. New Features and Enhancements in Spring 3.0.............................................................192.1. Java 5..............................................................................................................192.2. Improved documentation..................................................................................192.3. New getting started tutorial...............................................................................192.4. New module organization and build system.......................................................202.5. Overview of new features.................................................................................21Core APIs updated for Java 5..........................................................................21Spring Expression Language...........................................................................22The Inversion of Control (IoC) container..........................................................22Java based bean metadata........................................................................22Defining bean metadata within components..............................................24General purpose type conversion system and field formatting system.................24The Data Tier.................................................................................................24The Web Tier.................................................................................................24Comprehensive REST support.................................................................24@MVC additions...................................................................................25Declarative model validation...........................................................................25Early support for Java EE 6.............................................................................25Support for embedded databases......................................................................25III. Core Technologies............................................................................................................263. The IoC container.......................................................................................................27Spring Framework 3.0 Reference Documentation ii
 
3.1. Introduction to the Spring IoC container and beans.............................................273.2. Container overview..........................................................................................27Configuration metadata...................................................................................28Instantiating a container..................................................................................30Composing XML-based configuration metadata.......................................31Using the container.........................................................................................323.3. Bean overview.................................................................................................32Naming beans.................................................................................................34Aliasing a bean outside the bean definition...............................................34Instantiating beans..........................................................................................35Instantiation with a constructor................................................................36Instantiation with a static factory method.................................................36Instantiation using an instance factory method..........................................373.4. Dependencies...................................................................................................37Dependency injection......................................................................................37Constructor-based dependency injection...................................................38Setter-based dependency injection...........................................................40Dependency resolution process................................................................41Examples of dependency injection...........................................................42Dependencies and configuration in detail.........................................................44Straight values (primitives, Strings, and so on).........................................44References to other beans (collaborators).................................................46Inner beans.............................................................................................47Collections.............................................................................................47Null and empty string values...................................................................50XML shortcut with the p-namespace........................................................50Compound property names......................................................................51Using depends-on...........................................................................................51Lazy-initialized beans.....................................................................................52Autowiring collaborators.................................................................................53Limitations and disadvantages of autowiring............................................54Excluding a bean from autowiring...........................................................55Checking for dependencies..............................................................................55Method injection............................................................................................56Lookup method injection.........................................................................57Arbitrary method replacement.................................................................583.5. Bean scopes.....................................................................................................60The singleton scope........................................................................................61The prototype scope........................................................................................62Singleton beans with prototype-bean dependencies...........................................63Request, session, and global session scopes......................................................63Initial web configuration.........................................................................63Request scope.........................................................................................64Session scope.........................................................................................64Global session scope...............................................................................65Spring Framework 3.0 Reference Documentation iii

Activity (30)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
edemych liked this
Nabil Tanjawi liked this
wanto liked this
nageswari21 liked this
Lampdba Diop liked this
mdiazw1 liked this
vikuma6167 liked this
mjmacrohon liked this

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->