The object-relational mapper for .NET

NHibernate with Spring.NET

A new Dynamic-Proxy provider is available in NHibernate trunk (here the others two)

Erich Eichinger (Spring.NET team member) sent us the implementation of NHibernate.ByteCode.Spring.

The property to configure is

<property name="proxyfactory.factory_class">
NHibernate.ByteCode.Spring.ProxyFactoryFactory, NHibernate.ByteCode.Spring

The advantage to use the same engine of your preferred IoC/DI/AOP framework is pretty clear: everything is fully integrated (you can configure some aspect and you have it working when the proxy is generated trough NHibernate).

Now you have three options for dynamic proxy generation:

Castle, LinFu and Spring.

What next ? Probably Unity.

Posted Tue, 03 March 2009 11:00:00 AM by fabiomaulo
Filed under: proxy, ProxyGenerators, NHibernate, AOP, IoC

comments powered by Disqus
© NHibernate Community 2024