cglib
-
CGLIB is a powerful , high performance code generation library .
CGLIB是一个强大的高性能的代码生成包。
-
Geronimo uses the CGLib library to perform dynamic proxy generation .
Geronimo使用CGLib库来执行动态代理生成。
-
Let 's see how to create proxies using CGLIB proxy APIs .
接下来我们看看如何使用CGLIB代理APIs创建代理。
-
Special support for bytecode frameworks like Javassist and cglib which are used by many other tools
对诸如Javassist和cglib(被许多其他工具所使用)这样的字节码框架提供特殊支持
-
The CGLIB library code base is small , but it is difficult to learn due to lack of documentation .
CGLIB包的基本代码很少,当学起来有一定的困难,主要是缺少文档,这也是开源软件的一个不足之处。
-
Both of them use the CGLIB library to create mock objects for classes that do not have interfaces .
它们都通过使用CGLIB来为那些没有接口的类创建模仿(moke)对象。
-
This mechanism requires CGLIB on the classpath .
这种机制需要类路径中包含CGLIB。
-
Hibernate uses CGLIB proxy to implement lazy association fetching only for non-final classes .
Hibernate只会针对非final的类使用CGLIB代理来实现延时关联获取。
-
What if you want to proxy legacy classes that do not have interfaces ? You can use the CGLIB library .
如果想代理没有实现接口的继承的类,该怎么办?
-
The extra String parameter supplied to jMock CGLIB 's mock () method is used as an identifier for the mock object created .
提供给jMockCGLIB的mock()方法的附加String参数被用作创建的模拟对象的标识符。
-
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包。
-
The signature of the method is similar to that of the jMock CGLIB mock () method because both methods take on unique mock object identifiers as arguments .
方法的签名类似于jMockCGLIBmock()方法的签名,因为这两种方法将接纳惟一模拟对象标识符作为参数。