Method Proxy-Based AOP in Scala.
Daniel Spiewak, Tian Qi Zhao · The Journal of Object Technology · 2009
This paper describes a fully-functional Aspect-Oriented Programming framework in Scala -a statically typed programming language with object-oriented and functional features.This framework is implemented as internal domain-specific languages with syntax that is both intuitive and expressive.The implementation also enforces some static type safety in aspect definitions. EXAMPLEAOP enables developers to write code that is modularized to a point beyond the capabilities of vanilla object-oriented design.This kind of modularization is expressed declaratively in the form of cross-cutting concerns.A simple example of this can be seen in the Java implementation of a basic Circle class:1 public class Circle { 2 private int x, y; 3 4 public void setX(int x) { 1 The source code is available at: http://www.codecommit.com/scala-aop.