Download - Spring Framework 101
![Page 1: Spring Framework 101](https://reader036.vdocument.in/reader036/viewer/2022071813/55a2b82f1a28abf50c8b4873/html5/thumbnails/1.jpg)
Spring 101A 30 Minute Review by Matthew McCullough
![Page 2: Spring Framework 101](https://reader036.vdocument.in/reader036/viewer/2022071813/55a2b82f1a28abf50c8b4873/html5/thumbnails/2.jpg)
❶ What Is Spring?Don’t call me, I’ll call you
![Page 3: Spring Framework 101](https://reader036.vdocument.in/reader036/viewer/2022071813/55a2b82f1a28abf50c8b4873/html5/thumbnails/3.jpg)
• Java Application Framework (Not JEE)
• Targets Web, Enterprise Applications
• POJO Centric
• Inversion of Control (IOC)
• Now called Dependency Injection (DI)
![Page 4: Spring Framework 101](https://reader036.vdocument.in/reader036/viewer/2022071813/55a2b82f1a28abf50c8b4873/html5/thumbnails/4.jpg)
❷ Modularized
Alphabet Soup
![Page 5: Spring Framework 101](https://reader036.vdocument.in/reader036/viewer/2022071813/55a2b82f1a28abf50c8b4873/html5/thumbnails/5.jpg)
• JDBC Wrapper
• JDO, iBatis, Hibernate, JPA helper
• Supplement to Struts, Tapestry
• Batch Processing Framework
• Timed Events
• JMS, JNDI, LDAP
![Page 6: Spring Framework 101](https://reader036.vdocument.in/reader036/viewer/2022071813/55a2b82f1a28abf50c8b4873/html5/thumbnails/6.jpg)
❸ IOC/DIDon’t call me, I’ll call you
![Page 7: Spring Framework 101](https://reader036.vdocument.in/reader036/viewer/2022071813/55a2b82f1a28abf50c8b4873/html5/thumbnails/7.jpg)
• Core Spring capabilities
• Configure components from outside-in
• Counter to the usual constructor calling out to everything it needs
![Page 8: Spring Framework 101](https://reader036.vdocument.in/reader036/viewer/2022071813/55a2b82f1a28abf50c8b4873/html5/thumbnails/8.jpg)
• DI/IOC can be used in three ways
• POJO Setters
• Constructors
• Service lookup (JNDI)
Split Personalities
![Page 9: Spring Framework 101](https://reader036.vdocument.in/reader036/viewer/2022071813/55a2b82f1a28abf50c8b4873/html5/thumbnails/9.jpg)
❹ Factory
But not the kind that Al Gore worries about
![Page 10: Spring Framework 101](https://reader036.vdocument.in/reader036/viewer/2022071813/55a2b82f1a28abf50c8b4873/html5/thumbnails/10.jpg)
• POJO Centric
• BeanFactory creates beans
• Gives toggle choice between singleton and instances
• Creates PROPER singletons
• Auto-wiring by name
![Page 11: Spring Framework 101](https://reader036.vdocument.in/reader036/viewer/2022071813/55a2b82f1a28abf50c8b4873/html5/thumbnails/11.jpg)
❺ Aspects
![Page 12: Spring Framework 101](https://reader036.vdocument.in/reader036/viewer/2022071813/55a2b82f1a28abf50c8b4873/html5/thumbnails/12.jpg)
• Supplement existing methods on the fly
• Terminology: Proxies, Weaving, AspectJ
• Weaving:
• Byte time
• Load time