Skip to main content

2017 | OriginalPaper | Buchkapitel

3. Introducing IoC and DI in Spring

verfasst von : Iuliana Cosmina, Rob Harrop, Chris Schaefer, Clarence Ho

Erschienen in: Pro Spring 5

Verlag: Apress

Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.

search-config
loading …

Abstract

Practically, dependency injection is a specialized form of IoC, although you will often find that the two terms are used interchangeably. In this chapter, we give you a much more detailed look at IoC and DI, formalizing the relationship between the two concepts and looking in great detail at how Spring fits into the picture.

Sie haben noch keine Lizenz? Dann Informieren Sie sich jetzt über unsere Produkte:

Springer Professional "Wirtschaft+Technik"

Online-Abonnement

Mit Springer Professional "Wirtschaft+Technik" erhalten Sie Zugriff auf:

  • über 102.000 Bücher
  • über 537 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Maschinenbau + Werkstoffe
  • Versicherung + Risiko

Jetzt Wissensvorsprung sichern!

Springer Professional "Technik"

Online-Abonnement

Mit Springer Professional "Technik" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 390 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Maschinenbau + Werkstoffe




 

Jetzt Wissensvorsprung sichern!

Springer Professional "Wirtschaft"

Online-Abonnement

Mit Springer Professional "Wirtschaft" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 340 Zeitschriften

aus folgenden Fachgebieten:

  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Versicherung + Risiko




Jetzt Wissensvorsprung sichern!

Fußnoten
1
For example, try the Spring community forums at http://forum.spring.io .
 
2
These annotations are called stereotype because they are part of a package named org.springframework.stereotype. This package groups together all annotations used to define beans. These annotations are also relevant to the role of a bean. For example, @Service is used to define a service bean, which is a more complex functional bean that provides services that other beans may require, and @Repository is used to define a bean that is used to retrieve/save data from/to a database, etc.
 
3
cglib is a powerful, high-performance, and high-quality code generation library. It can extend Java classes and implement interfaces at runtime. It is open source, and you can find the official repository at https://github.com/cglib .
 
Metadaten
Titel
Introducing IoC and DI in Spring
verfasst von
Iuliana Cosmina
Rob Harrop
Chris Schaefer
Clarence Ho
Copyright-Jahr
2017
Verlag
Apress
DOI
https://doi.org/10.1007/978-1-4842-2808-1_3