We are using Spring, DynamicProxy and Rhino Mocks (using Dynamic
Proxy). I have to admit that I still don't have any clue which proxy
system to choose. There are some problems with DP I could solve by
compiling Rhino. Switching to LinFu might be even easier. But what are
the actual differences of these proxy systems?

Today it's kind of "It doesn't matter, just pick one by random".
Fabio, you're talking about different features. Can I benefit from
them somehow, when using NHibernate? Are there differences in
scalability, performance, limitations, whatever? Of course everyone
can read the documentation of all the proxy implementations and try to
make a comparison himself - just to find out that it really doesn't
matter for his case.

It would be a great topic for a blog, some rules of thumb which proxy
system to choose if you don't have a clue. So if someone has the
knowledge and time to write such an article, it would be very
appreciated.


On 2 Apr., 07:21, Fabio Maulo <[email protected]> wrote:
> 2009/4/2 Darius Damalakas <[email protected]>
>
>
>
> > So having an ability to change proxy generation strategy might help us
> > solve that. There is two possible ways (of which i am aware now):
> > 1. In one or another way force proxy generator to first save assembly
> > to disk, and then load it to memory.
> > 2. Pre-generate classes and load them from disk at startup time.
>
> In Hibernate (JAVA) all this stuff are solved in just only one level : The
> Bytecode injection
>
> In NHibernate we have different levels:
> - entirely Bytecode (include all even ReflectionOptimizer)
> - ProxyFactoryFactory (for proxy system)
>
> About option 1 and 2 you can use NHPG or share an equivalent solution for
> others 
> dynamic-proxyhttp://nhforge.org/wikis/proxygenerators10/introduction.aspxhttp://nhforge.org/wikis/proxygenerators10/faq.aspx
>
> --
> Fabio Maulo
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" 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/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to