Software Engineering Institute | Carnegie Mellon University
Software Engineering Institute | Carnegie Mellon University

Digital Library

Javascript is currently disabled for your browser. For an optimal search experience, please enable javascript.

Advanced Search

Basic Search

Content Type

Topics

Publication Date

Technical Note

Using Aspect-Oriented Programming to Enforce Architecture

  • September 2007
  • By Paulo Merson
  • This report illustrates how to use AOP (aspect-oriented programming) to ensure conformance to architectural design, proper use of design patterns and programming best practices, conformance to coding policies and naming conventions.
  • Software Architecture
  • Publisher: Software Engineering Institute
  • Abstract

    Using aspect-oriented programming (AOP), software developers can define customized compile-time error or warning messages that are issued when the code contains join points that match specified pointcuts. These customized messages are generated by compile-time declarations, which are an extremely simple but powerful AOP mechanism. Declarations that look for nonvalid interactions between modules can be used for architecture enforcement. Coding policies, best practices, design patterns, and code-naming conventions can also be enforced. Compile-time declarations operate as an additional verification in the build process, but they do not affect the compiled application and can be turned on and off at any time. That feature makes this approach an automated and nondisruptive solution for architecture enforcement and a risk-free first step towards AOP adoption.

  • Download

Cite This Report

SEI

Merson, Paulo. Using Aspect-Oriented Programming to Enforce Architecture (CMU/SEI-2007-TN-019). Software Engineering Institute, Carnegie Mellon University, 2007. http://resources.sei.cmu.edu/library/asset-view.cfm?AssetID=8247

IEEE

Merson. Paulo, "Using Aspect-Oriented Programming to Enforce Architecture," Software Engineering Institute, Carnegie Mellon University, Pittsburgh, Pennsylvania, Technical Note CMU/SEI-2007-TN-019, 2007. http://resources.sei.cmu.edu/library/asset-view.cfm?AssetID=8247

APA

Merson, Paulo. (2007). Using Aspect-Oriented Programming to Enforce Architecture (CMU/SEI-2007-TN-019). Retrieved December 26, 2014, from the Software Engineering Institute, Carnegie Mellon University website: http://resources.sei.cmu.edu/library/asset-view.cfm?AssetID=8247

CHI

Paulo Merson. Using Aspect-Oriented Programming to Enforce Architecture (CMU/SEI-2007-TN-019). Pittsburgh, PA: Software Engineering Institute, Carnegie Mellon University, 2007. http://resources.sei.cmu.edu/library/asset-view.cfm?AssetID=8247

MLA

Merson, Paulo. 2007. Using Aspect-Oriented Programming to Enforce Architecture (Technical Report CMU/SEI-2007-TN-019). Pittsburgh: Software Engineering Institute, Carnegie Mellon University. http://resources.sei.cmu.edu/library/asset-view.cfm?AssetID=8247