Skip to main content

2017 | OriginalPaper | Buchkapitel

4. Aspect Oriented Programming with Spring

verfasst von : Iuliana Cosmina

Erschienen in: Pivotal Certified Professional Spring Developer Exam

Verlag: Apress

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

search-config
loading …

Abstract

AOP is an acronym for Aspect Oriented Programming, a term that refers to a type of programming that aims to increase modularity by allowing the separation of cross-cutting concerns. A cross-cutting concern is a functionality that is tangled with business code, which usually cannot be separated from the business logic. Auditing, security, and transaction management are good examples of cross-cutting concerns. They are mingled with the business code, heavily coupled with the functionality that might be affected if they fail. These are good candidates for separation using aspects, because there is no design pattern that would allow writing the code in such a way that they would be separated from the business logic. This means that additional behavior is added to existing behavior when the application is compiled. So transaction management, security logic, and auditing can be developed separately and mingled with the functionality at compile time. This is done by defining an advice containing code that will be executed in a location named join point specified by a point cut. This approach allows for code implementing behavior that is not related to business logic to be separated from functional code, the result being a more modular, less coupled, and less cluttered application.

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
2
You can disable aspects support by commenting the @EnableAspectJAutoProxy annotation, and Spring will just ignore the Aspect annotation.
 
Metadaten
Titel
Aspect Oriented Programming with Spring
verfasst von
Iuliana Cosmina
Copyright-Jahr
2017
Verlag
Apress
DOI
https://doi.org/10.1007/978-1-4842-0811-3_4