IT lexicon › Programming › AspectJ

AspectJ

Programming På svenska → Updated: 2026-05-25

Aspect-Oriented Programming extension to Java. Xerox PARC, Gregor Kiczales and others, 2001. Define "aspects" that cross-cut normal code (logging, transactions, security).

Pointcuts (where) + Advice (what). Compile-time or load-time weaving. Spring AOP is a minimal subset (only method-execution pointcuts). The AOP hype was big 2003–2008, has faded — many use cases replaced by decorators (Python @decorator, JS), middleware pipelines, or just regular composition. Still lives in Spring transaction handling and Java logging frameworks.

← Back to the lexicon