摘要
面向对象编程(OOP)能很好地处理软件复用问题,但在处理横跨多个不相干模块的公共行为时显示出其局限性,即无法解决执行逻辑分离问题。近年来发展起来的面向方面编程(AOP)技术成功地将非业务模块和业务模块按照执行关注点进行抽象分离,成为解决执行分离问题的可能途径之一。为此,结合农资信息管理平台系统的开发,阐述了AOP技术在农资日志审计等方面分离执行逻辑的实际应用。实践证明,通过AOP技术能够有效提升开发效率,降低开发成本,使得系统更加灵活、可重用。
Object-oriented programming (OOP) has successfully improved the software reusability,while shows its inefficiency on dealing with common activities among irrelevant modules.The recently developed Aspect-Oriented Programming (AOP) can separate the traffic and non-traffic modules on the abstract joint points,which becomes an possible approach for this execution separation problem.In this paper,we show the application of AOP separation techs in the development of agri-materials system and especially on the log audit subsystem.Our practice shows that AOP can effectively improve the development efficiency,reduce the develop costs and make the system more flexible and reusable.
出处
《农机化研究》
北大核心
2010年第8期153-157,共5页
Journal of Agricultural Mechanization Research
基金
国家科技支撑计划项目(2008BADA0B02)
关键词
农资信息管理
AOP
日志审计
information management agri-materials
AOP
log audit