sixlegs.com / blog / java / cglib-asm.html

Root Beer Logo Root Beer

Chris Nokleberg's Fizzy Weblog

June 2003
Su M Tu W Th F Sa
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 19 20 21
22 23 24 25 26 27
29 30
Previous  |  Next  |  More...
#  Replacing BCEL

I meant to mention earlier that CGLIB now uses ASM instead of BCEL.

In addition to a cleaner API (for our purposes at least), ASM generates classes faster, and its small size means the total jar size is now 150K instead of 450K!

So, if your project can spare 150K, there really is no reason to still be using Dynamic Proxies. The Proxy class is a drop-in replacement which works under JDK 1.2 and can proxy any class. If you switch to the Enhancer class you also get a performance boost and more flexible interception possibilities.

p.s. If you're using Hibernate, you already have cglib.jar

[Powered By FreeMarker]  [Valid Atom 1.0]  [Weblog Commenting by HaloScan.com]