The main idea behind AOP is that you create new typed object, based on a dynamic proxy mechanism, that implements a set of interfaces at runtime.
AOP背后的主要思想是基于动态代理机制创建新的对象类型,该对象会在运行时实现一些接口。
But one of the best features of AOP is that it comes in several different flavors and implementations (i.e., proxy-based, byte-code weaving etc...).
但是AOP最好的特性之一就是它可以有多种不同的风格和实现(例如,基于代理的,字节码编织等等……)。
Note that some frameworks, such as Spring AOP and Hibernate, often use both the CGLIB library and the JDK dynamic proxy to meet their needs.
需要注意的是一些框架例如springAOP和Hibernate,它们为了满足需要经常同时使用JDK的动态代理和CGLIB包。
Because a ModelMBean is already a form of proxy, there's not much point in using Spring's proxy mechanism and AOP interceptors to intercept the methods I'm interested in.
因为ModelMBean已经是一种代理,所以不需要使用Spring的代理机制和aop截获器来截获感兴趣的方法。
Spring AOP unfortunately can't help us here simply because it is proxy-based and since our intercepting filters are already a part of a proxy infrastructure we simply cannot proxy the proxy.
不幸的是SpringAOP不能帮上忙,因为它是基于代理的,因此我们的拦截过滤器已经是代理基础架构的一部分了,我们不能代理这个代理(proxythe proxy)。
Spring 2.0 provides an additional option for @AspectJ aspects: Spring can use its proxy-based AOP runtime to apply such aspects to Spring beans.
Spring 2.0为@AspectJ切面提供一种额外的选择:Spring可以使用它的基于代理的AOP运行时来将这样的切面应用到Spring beans。
Because Spring has a sophisticated proxy-based AOP framework, it can hide lookups at runtime providing such "just in time" functionality.
因为Spring有一个复杂的基于代理的AOP框架,它能在运行时通过提供这样“非常及时”的功能来隐藏查找的动作。
It is widely used behind the scenes in proxy-based Aspect Oriented Programming (aop) frameworks, such as Spring aop and dynaop, to provide method interceptions.
它广泛的被许多aop的框架使用,例如SpringAOP和dynaop,为他们提供方法的interception(拦截)。
Ramnivas discussed the advantages and limitations of AspectJ weaving and proxy-based Spring AOP approach.
Ramnivas讨论了AspectJ织入和基于代理的SpringAOP方法的优势与不足。
AOP consists of five subsystems, which are AOP XML Loading system, AOP Processing system, AOP File Watching system, Dynamic Proxy Class Builder and Static Proxy Class Builder.
AOP由五个子系统组成,它们是AOPXML装载系统、AOP处理系统、AOP文件监测系统、动态代理类生成器和静态代理类生成器。
AOP consists of five subsystems, which are AOP XML Loading system, AOP Processing system, AOP File Watching system, Dynamic Proxy Class Builder and Static Proxy Class Builder.
AOP由五个子系统组成,它们是AOPXML装载系统、AOP处理系统、AOP文件监测系统、动态代理类生成器和静态代理类生成器。
应用推荐