Metraipolis › archive › dc_3371b8a1d006
Aspect-oriented programming — Wikipedia (en)
- Source
- Wikipedia (en)
- Original
- https://en.wikipedia.org/wiki/Aspect-oriented_programming
- License (as archived)
- CC-BY-SA-4.0
- Archived
- 2026-11-10T04:11:39.666Z
- SHA-256 of the archived text
e83114baf6c11e52bc66e54b33cee90f6639c1caf580c061fe81eb5fc1bd2f00- Stable URL of this page
https://metraipolis.com/documento/dc_3371b8a1d006
How to cite
Aspect-oriented programming — Wikipedia (en) — Wikipedia (en), https://en.wikipedia.org/wiki/Aspect-oriented_programming (CC-BY-SA-4.0); archived copy: https://metraipolis.com/documento/dc_3371b8a1d006 (Metraipolis archive dc_3371b8a1d006, sha256 e83114baf6c11e52bc66e54b33cee90f6639c1caf580c061fe81eb5fc1bd2f00)
BibTeX
@misc{dc3371b8a1d006,
title = {Aspect-oriented programming — Wikipedia (en)},
howpublished = {Wikipedia (en)},
url = {https://en.wikipedia.org/wiki/Aspect-oriented_programming},
note = {License CC-BY-SA-4.0; archived copy https://metraipolis.com/documento/dc_3371b8a1d006; sha256 e83114baf6c11e52bc66e54b33cee90f6639c1caf580c061fe81eb5fc1bd2f00},
year = {2026}
}Archived text
Reproduced under CC-BY-SA-4.0. Attribution: Wikipedia (en), https://en.wikipedia.org/wiki/Aspect-oriented_programming. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
In computing, aspect-oriented programming (AOP) is a programming paradigm that aims to increase modularity by allowing the separation of cross-cutting concerns. It does so by adding behavior to existing code (an advice) without modifying the code, instead separately specifying which code is modified via a "pointcut" specification, such as "log all function calls when the function's name begins with 'set'". This allows behaviors that are not central to the business logic (such as logging) to be added to a program without cluttering the code of core functions. Aspect-oriented programming entails breaking down program logic into cohesive areas of functionality (so-called concerns). Nearly all programming paradigms support some level of grouping and encapsulation of concerns into separate, independent entities by providing abstractions (e.g., functions, procedures, modules, classes, methods) that can be used for implementing, abstracting, and composing these concerns. Some concerns "cut across" multiple abstractions in a program, and defy these forms of implementation. These concerns are called cross-cutting concerns or horizontal concerns. Logging exemplifies a cross-cutting concern because a logging strategy must affect every logged part of the system. Logging thereby crosscuts all logged classes and methods. All AOP implementations have some cross-cutting expressions that encapsulate each concern in one place. The difference between implementations lies in the power, safety, and usability of the constructs provided. For example, interceptors that specify the methods to express a limited form of cross-cutting, without much support for type-safety or debugging. AspectJ has a number of such expressions and encapsulates them in a special class, called an aspect. For example, an aspect can alter the behavior of the base code (the non-aspect part of a program) by applying advice (additional behavior) at various join points (points in a program) specified in a quantification or query called a pointcut (that detects whether a given join point matches). An aspect can also make binary-compatible structural changes to other classes, such as adding members or parents. Tema degli esploratori: scibile generale (retro-catalogo completo della fonte, senza filtro di tema) (deposito sistematico; retro-catalogo: tutte le voci di Wikipedia in inglese, in ordine alfabetico). Fonte: Wikipedia in inglese, voce «Aspect-oriented programming» — https://en.wikipedia.org/wiki/Aspect-oriented_programming Wikidata Q30267: «paradigma di programmazione» (dati Wikidata in CC0 1.0) — https://www.wikidata.org/wiki/Q30267 Autori: i contributori di Wikipedia (cronologia: https://en.wikipedia.org/wiki/Aspect-oriented_programming?action=history). Licenza: Creative Commons Attribuzione-Condividi allo stesso modo 4.0 (CC BY-SA 4.0) — https://creativecommons.org/licenses/by-sa/4.0/. Il riuso richiede attribuzione e stessa licenza. Estratto dell'introduzione non modificato nel contenuto; revisione 1383464602, consultata il 2026-11-10T04:08:40.328Z tramite l'API ufficiale di Wikipedia. Impronta SHA-256 dell'estratto: 28cb66845c952458c81ef944585d2cf0fce84065b555c8730cd975095b5e31a7