Summary
In this chapter, we covered a lot of ground with both the Spring core and IoC in general. We showed you examples of the different types of IoC and presented a discussion of the pros and cons of using each mechanism in your applications. We looked at which IoC mechanisms Spring provides and when and when not to use each within your applications. While exploring IoC, we introduced the Spring BeanFactory, which is the core component for Spring’s IoC capabilities, and more specifically, we focused on the XmlBeanFactory that allows external configuration of Spring using XML.
This chapter also introduced you to the basics of Spring’s IoC feature set including setter injection, constructor injection, auto-wiring, and bean inheritance. In the discussion of configuration, we demonstrated how you can configure your bean properties with a wide variety of different values, including other beans, using the XmlBeanFactory.
This chapter only scratches the surface of Spring and Spring’s IoC container. In the next chapter, we look at some IoC-related features specific to Spring, and we take a more detailed look at other functionality available in the Spring core.
Keywords
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2005 Rob Harrop and Jan Machacek
About this chapter
Cite this chapter
(2005). Introducing Inversion of Control. In: Pro Spring. Apress. https://doi.org/10.1007/978-1-4302-0004-8_4
Download citation
DOI: https://doi.org/10.1007/978-1-4302-0004-8_4
Publisher Name: Apress
Print ISBN: 978-1-59059-461-2
Online ISBN: 978-1-4302-0004-8
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books