摘要
Spring是实现控制反转的容器、非入侵性框架,并提供面向切面(AOP)概念的实现方式。文中以实际项目为背景,抽取简短代码片断,说明了以代理模式原理为基础的Spring框架Pointcut/Advisor和Autoproxing相结合的IoC/AOP技巧和效果,对比分析了其他AOP实现的特点,展示了Spring AOP的简单,高效,可维护等优点。
Spring is a programming framework,that implements the techonology about Inversion of Control and non-invading,offering realization of Aspect-Oriented Programming.This paper bases on the realized project,and draws-out some piece of code, with Spring framework it shows a method of AOP to combine PointeutAdvisor and Autoproxing,and analyses the characters of other AOP's frame-work,and improves the advantage of simpleness,effeieney,maintenance on Spring AOP.
出处
《微计算机信息》
2009年第9期56-58,共3页
Control & Automation
关键词
SPRING
控制反转
面向方面
代理
织入
Spring
Inversion of Control
Aspect-Orient Programming
Proxy
Weave