简体   繁体   中英

Since when can spring use cglib for proxy creation?

I'm looking for the date (month and year), and optionally the version, since when Spring can use cglib or javassist for creating proxy, and doesn't need interfaces anymore for proxyfied beans.

Does someone remember it ?

The oldest changelog on docs.spring.io show that Spring 1.0.0, in 11/2003, includes cglib proxies:

Changes in version 1.0 M3 (25.11.2003)
--------------------------------------

Package org.springframework.aop
* major AOP API changes: see changes-M2-M3.txt for further details
* added "targetClass" argument to StaticMethodPointcut.applies()
* CGLIB proxies support introductions now
* can force CGLIB proxying using new "proxyTargetClass" property on DefaultProxyConfig
* introduced various invoker interceptors like Prototype-, CommonsPooling-, and ThreadLocalInvokerInterceptor

I couldn't find the referenced changes-M2-M3.txt file, but this hints that cglib proxies were added in M3.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM