2008/10/21 Gili Tzabari <[EMAIL PROTECTED]>

>    I've only personally played around with JDK proxies, ASM and CGLIB
> (so no ideas about the other ones). Personally I would advocate using
> any API that simplifies the code and has good documentation. For
> example, last time I checked CGLIB had horrible (practically
> nonexistent) documentation and ASM wasn't the easiest thing in the world
> to use (though the documentation was a lot better). If Apache Commons
> Proxy improves on both fronts (usability, documentation) it would be
> worth using in my view.


cglib is currently an internal dependency that's hidden from users
so using commons proxy would not change the public API, except
to let them choose which proxy to use - it would also add a level of
indirection internally, and may make Guice slightly harder to setup
(as the proxy libraries would then be managed externally)

so imho this wouldn't be a huge gain, compared to other features
on the issues list (and I wouldn't want it to delay the next release)

I'm not sure whether it does though or how well it is maintained.
>

well, I'm sure James can answer that ;) I did notice that it still has
a dependency on cglib 2.1_3, which has a race condition - but I
assume cglib 2.2 can be dropped in without any recompilation


> Gili
>
> [EMAIL PROTECTED] wrote:
> > On Oct 16, 10:42 pm, "James Carman" <[EMAIL PROTECTED]> wrote:
> >
> >> Would the Google Guice project be interested in using Apache Commons
> >> Proxy (http://commons.apache.org/proxy/)? ACP basically allows you to
> >> create dynamic proxy objects using a standardized API without worrying
> >> about the underlying dynamic class library specifics.  Right now, it
> >> includes support for JDK proxies, Javassist, and CGLIB (no ASM yet,
> >> but I imagine it could be done).
> >>
> >
> > Honest question: how would this make our code better?
> > >
> >
> >
>
> >
>


-- 
Cheers, Stuart

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-guice?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to