There are many fundamental function modules in general software system, such as logging, authentication, caching, data accessing and so on. The common core of these modules is that they can cross multiple modules in the system and they are not core business logic of the system. In the development of software, we would have many problems because of cross-cutting concerns and core modules mix. These problems trouble either system stylists or software developers. Neither object-oriented programming nor process-oriented programming can resolve these problems. There is a new methodology, aspect-oriented programming (AOP), which can resolve these. In AOP, logging or caching is treated as cross-cutting concern and implemented as aspect independently in AOP. At last, the final system is composed by these aspects.This paper describes the design and implementation of a light-weight loose-coupling framework based on AOP. After the analysis of domestic and foreign research situation, we discuss the problems which we have in practice, design the function structure of the framework and research the weave technology profoundly. In the end, I design and implement the framework in detail. I name this framework for "MyAOP".MyAOP framework is based on AOP theory and is used to resolve the module coupling problems between core concerns and cross-cutting concerns in software design and development. MyAOP framework improves software reusability. |