|
From: Gavin K. <ga...@ap...> - 2002-10-22 04:42:34
|
> Cglib is brilliant for simply wrapping method calls. As I understand its > main feature is generating classes dynamically by merging two classes that > were not in any way related at compile time. The generated class looks like > a subclass of the original, so you don't need 1000 interfaces as with > proxies. And another advantage is that you don't need to break identity equals the way you do with java.lang.reflect.Proxy. (The Proxy is always a different object.) Very, very nice. I wish I knew about this before! |