You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bcel-dev@jakarta.apache.org by Neeme Praks <ne...@apache.org> on 2002/11/27 21:24:57 UTC
Implementing dynamic proxies with BCEL
Hi all!
I've started to look at implementing dynamic proxies with BCEL. Has
there been any such effort before? Any suggestions/comments for/on
implementing this?
I've started by writing by hand a sample proxy class and run BCELifier
on that. Now I will start to dig deeper into the generated code, to make
the proxy generation dynamic.
I'll let you know of the progress.
Rgds,
Neeme
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Implementing dynamic proxies with BCEL
Posted by Juozas Baliuka <ba...@mwm.lt>.
Hi all,
> 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 ;-)
there are a lot of work to do like documentation, more ideas about code
generation ... .
> 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...
I do not think it is some kind of political problems, both projects have the
same license.
I have posted a proxy generator implementation a few moths ago, possile it
was too crapy implemnetation, possible things like this is out
of BCEL scope.
>
> 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
>
>
>
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Implementing dynamic proxies with BCEL
Posted by Neeme Praks <ne...@apache.org>.
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
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Implementing dynamic proxies with BCEL
Posted by Juozas Baliuka <ba...@centras.lt>.
Hi,
I contribute for this kind project http://cglib.sourceforge.net, very
possible we can find ways for cooperation.
----- Original Message -----
From: "Neeme Praks" <ne...@apache.org>
To: "bcel-dev" <bc...@jakarta.apache.org>
Sent: Wednesday, November 27, 2002 10:24 PM
Subject: Implementing dynamic proxies with BCEL
> Hi all!
>
> I've started to look at implementing dynamic proxies with BCEL. Has
> there been any such effort before? Any suggestions/comments for/on
> implementing this?
>
> I've started by writing by hand a sample proxy class and run BCELifier
> on that. Now I will start to dig deeper into the generated code, to make
> the proxy generation dynamic.
>
> I'll let you know of the progress.
>
> Rgds,
> Neeme
>
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>