Abstract
This chapter is necessary for building a Spring background, which will be very helpful in the upcoming chapters. This chapter will help you get familiar with the Spring container, context, beans, and most Spring core modules and how they work together to allow developers to focus on solving problems instead of building up support.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
A software term introduced by Martin Fowler, Rebecca Parsons, and Josh MacKenzie in September 2000 to refer to ordinary Java objects not bound by any restriction.
- 2.
The process through which an object is provided its dependencies, whether it is using a constructor or properties which are set using setter methods, is called dependency injection. inversion of control is the concept through which an external component has control over what is provided as a dependency to an object.
- 3.
For more information, see the public reference documentation at http://docs.spring.io/spring/docs/current/spring-framework-reference .
- 4.
The @Autowiring annotation can also be used on the field directly, called field injection; but this approach is discouraged because it makes testing difficult. As the field is usually private, to test the containing bean, a full Spring context must be set up or reflection must be used to access the field.
- 5.
The Spring Reference Documentation can be accessed at http://docs.spring.io/spring/docs/current/spring-framework-reference/htmlsingle/ .
- 6.
A snippet from the JEE official Java doc at http://docs.oracle.com/javaee/7/api/javax/annotation/PostConstruct.html .
- 7.
A snippet from the JEE official Java doc at http://docs.oracle.com/javaee/7/api/javax/annotation/PreDestroy.html .
- 8.
- 9.
CABPP is the acronym for CommonAnnotationBeanPostProcessor. It is used to fit a log quote nicely on a page.
- 10.
The most commonly used Java testing framework (see http://junit.org ).
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2015 Iuliana Cosmina
About this chapter
Cite this chapter
Cosmina, I. (2015). Spring Fundamentals. In: Pivotal Certified Spring Web Application Developer Exam. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-0808-3_2
Download citation
DOI: https://doi.org/10.1007/978-1-4842-0808-3_2
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-0809-0
Online ISBN: 978-1-4842-0808-3
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)