Using Aspect-Oriented Programming to Enforce Architecture

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 compiletime 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.

Open PDF

Document Details

Document Type
Technical Report
Publication Date
Sep 01, 2007
Accession Number
ADA479786

Entities

People

  • Paulo Merson

Organizations

  • Carnegie Mellon University

Tags

DTIC Thesaurus Topics

  • Application Software
  • Best Practices
  • Computer Programming
  • Computer Programs
  • Computers
  • Databases
  • Engineering
  • Graphical User Interface
  • Object Oriented Programming
  • Relational Database Management Systems
  • Relational Databases
  • Software Design
  • Software Development
  • Software Development Tools
  • Standards
  • United States
  • User Interface

Fields of Study

  • Computer science
  • Engineering

Readers

  • Computational Linguistics
  • Government and Public Administration Law.
  • Software Engineering.