Re: Implementing dynamic proxies with BCEL

Neeme Praks <[email protected]>
Newsgroups gmane.comp.jakarta.bcel.devel
Message-ID <[email protected]>
Labas, Juozas!

Juozas Baliuka wrote:

> Hi,
> I contribute for this kind project http://cglib.sourceforge.net, very
> possible we can find ways for cooperation.

Can you elaborate on the "ways of cooperation"?
As much as I can see from CGLIB code... you have already implemented the 
proxy thing ;-)
Is there any reason (other than political) why you wouldn't merge your 
CGLIB project with BCEL?  CGLIB seems to build on top of BCEL so nicely...

My code for proxy generation can be just a small example of BCEL 
usage... for any more serious use people should probably consider CGLIB.

BTW, it would be more helpful if you would replace
-----------
CGLIB outputs generated classes. Byte code generation and class file 
format manipulation is hidden in static methods. It was designed to 
implement Transparent Persistence for JAVA, but can be used to implement 
aspects like Security or Validation.
-----------
(from http://cglib.sourceforge.net/)
with
-----------
This project is inspired by java.lang.reflect.Proxy, but CGLIB proxy 
generator is more powerful and can be used by JDO/ODMG or EJB 
implementations. It can extend any not final class and implement 
interfaces at runtime.
-----------
(from http://sourceforge.net/projects/cglib)

The latter description reflects the true purpose of the project much 
better IMHO...

Rgds,
Neeme
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.