Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Download
Standard view
Full view
of .
Look up keyword
Like this
23Activity
0 of .
Results for:
No results containing your search query
P. 1
Spring Framework Reference 3.0.2

Spring Framework Reference 3.0.2

Ratings: (0)|Views: 717|Likes:
Published by Phil Kim

More info:

Published by: Phil Kim on Jun 08, 2010
Copyright:Attribution Non-commercial

Availability:

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

09/25/2012

pdf

text

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 articles and tutorials..................................................................................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...................................................................................................38Dependency injection......................................................................................38Constructor-based dependency injection...................................................39Setter-based dependency injection...........................................................40Dependency resolution process................................................................41Examples of dependency injection...........................................................43Dependencies and configuration in detail.........................................................45Straight values (primitives, Strings, and so on).........................................45References to other beans (collaborators).................................................47Inner beans.............................................................................................47Collections.............................................................................................48Null and empty string values...................................................................50XML shortcut with the p-namespace........................................................51Compound property names......................................................................52Using depends-on...........................................................................................52Lazy-initialized beans.....................................................................................53Autowiring collaborators.................................................................................53Limitations and disadvantages of autowiring............................................55Excluding a bean from autowiring...........................................................56Checking for dependencies..............................................................................56Method injection............................................................................................57Lookup method injection.........................................................................58Arbitrary method replacement.................................................................593.5. Bean scopes.....................................................................................................60The singleton scope........................................................................................62The prototype scope........................................................................................62Singleton beans with prototype-bean dependencies...........................................63Request, session, and global session scopes......................................................64Initial web configuration.........................................................................64Request scope.........................................................................................65Session scope.........................................................................................65Global session scope...............................................................................65Spring Framework 3.0 Reference Documentation iii

Activity (23)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
wanto liked this
Yassine Jeddi liked this
Angelo liked this
Angelo liked this
mailtonetharsana liked this
naseer0021 liked this
jhjhghj liked this
jjtango liked this

You're Reading a Free Preview

Download