期刊名称:Oriental Journal of Computer Science and Technology
印刷版ISSN:0974-6471
出版年度:2009
卷号:2
期号:2
页码:113-118
语种:English
出版社:Oriental Scientific Publishing Company
摘要:No one process, technique, language, or platform is good for all situations. Object oriented is not an exception. There are many situations, which the traditional Object-Oriented Programming (OOP) can’t deal and implement as it should be. One of them is cross-cutting concerns like logging or security that affects multiple implementation modules. Using object-oriented techniques cross-cutting concerns are difficult to map in a single class and hence they are scattered throughout the code. Due to scattering resulting systems are harder to design, understand, implement, and evolve. Aspect-oriented programming (AOP) is one of the ideas that can be used to modularize the crosscutting concerns better than previous methodologies. The present paper discusses the problems caused by crosscutting concerns and then shows how AOP can solve the said problem with the help of a sample code implemented in AspectJ. This paper also demonstrates how one can use Eclipse IDE to implement AOP.