1. Store Of Core Spring
Mak Bhatamrekar
http://github.com/makrand-bkar
AJCP
http://meetup.com/my-ajcp
Atlanta Java Concept Pros
2. Agenda
• The Problem
• Solution With No Spring and Challenges
• Magic Of Spring Core/ DI
• More on XML Config & Co`ncepts
• Must Know Key Concepts
• Whats new Spring 3
• Recap
6. Issues
Multiple Programmers Practical Aspects
• Create Dummy Classes ? Different Test and
– Method Names e.g getType() Production Configurations
in engine
• Code and Compile ?Reduced Test Cycles
– Add image here
?Cluttered Business Logic
7.
8. Spring Framework – The Hero
Important Dates
• Spring 1.0 - 2004
• Spring 1.2.6 – Won Awards
• Spring 2.0 – Oct 2006
• Spring 2.5 – Nov 2007
• Spring 3.0 – Dec 2009
• Spring 3.1 – Dec 2011
• Spring 3.2.1 – Jan 2013
• Spring 4.0 – End of Year
10. Spring Projects
• Spring Security
• Spring Integration
• Spring Batch
• Spring Data
• Spring Web Services
• Spring Web
• Spring Social
• Spring Android
• More..
15. Important Configs
• <context:annotation-config />
• <context:component-scan>
• p: -- namespace for setter injections
• c: -- namespace for getter injects
• util: -- useful utilties for DI
• aop – aop support
• tx – transaction support
16. At it’s core – Spring is a framework for wiring up
your entire application
17. @Autowired
• byName - by property name
• byType - by property type
• Constructor – Similar to byType but applies to
constructor args
• Autodetect – first autowires by constructor, if
that fails autowires byType.
23. Steps To Execute SourceCode
1. Download from github, Zip option is also
there
2. cd SpringCoreCarSample
3. mvn compile eclipse:eclipse
4. Open Eclipse
5. Select File ->Import -> Existing Projects Into..
6. Run the Main classes as Application from
Eclipse
24. Reference Links
Meetup.com / Atlanta Spring Users Group
•https://github.com/makrand-bkar/SpringCoreCarSample
•http://www.tutorialspoint.com/spring/
•http://www.mkyong.com/spring/
•http://www.springsource.org/tutorials
25. Store Of Core Spring
Mak Bhatamrekar
github :http://github.com/makrand-bkar
twitter : mak-bkar
url : www.careerinjava.com
http://meetup.com/my-ajcp
Atlanta Java Concept Pros
Editor's Notes
Whats the Problem we are trying to solve
TATA NANO has Engine on the Back when the person sits -- TODO Add the Trunk Image
Spring DI which allows ot inject dependencies, so your code base is made only of interface and does not know about implementations Spring AOP is the declarative aspect which allows to add a nature to a class, like Translcation, logging Portal Service Abstracts + Good Documentation