Aspect-Oriented Programming

Why Trust Techopedia

What Does Aspect-Oriented Programming Mean?

Aspect-oriented programming (AOP) is a programming paradigm that isolates the supporting functions from the main program’s business logic.

Advertisements

AOP includes programming methods and tools supporting modularization of concerns at the source code level, but it may also refer to the entire software engineering discipline.

Techopedia Explains Aspect-Oriented Programming

The loss of modularity occurs at the intersection between concerns, and modularity is returned using AOP. This process of intersection, also known as weaving, occurs at build or runtime.

Weaving helps in a number of processes, such as:

  • Replacing method bodies with new implementations
  • Inserting code before and after method calls
  • Implementing variable reads and writes
  • Associating new states and behaviors with existing classes

AOP logic is implemented in an aspect class independent of later-augmented classes. Once implemented, it can be attached to any library class without aspect class awareness.

Advertisements

Related Terms

Margaret Rouse
Technology Specialist
Margaret Rouse
Technology Specialist

Margaret is an award-winning writer and educator known for her ability to explain complex technical topics to a non-technical business audience. Over the past twenty years, her IT definitions have been published by Que in an encyclopedia of technology terms and cited in articles in the New York Times, Time Magazine, USA Today, ZDNet, PC Magazine, and Discovery Magazine. She joined Techopedia in 2011. Margaret’s idea of ​​a fun day is to help IT and business professionals to learn to speak each other’s highly specialized languages.