|
计算机科学 2007
Combining Aspect Oriented Programming and Reflection to Implement Software Adaptation Dynamically
|
Abstract:
The environment complexity of software continues to increase; it's beyond the ability of human to control it. Object-oriented programming could result in crosscutting concerns and code tangling; it is difficult in modularity and reusability. Aspect-oriented programming is an instrument for separation of concerns and enables modularization of crosscutting concerns. Reflection, the technique that permits a program to inquire about its own state at run time (called introspection), and permits modification and adaptation of the run time software. We combine virtue of AOP and reflection, and use AspectJ and reflection of Java to implement software modify its behaviors and respond to chan- ging conditions during execution.