ProxyFactoryFactory.cs 510 B

1234567891011121314151617181920212223
  1. using NHibernate.Bytecode;
  2. using NHibernate.Proxy;
  3. namespace NHibernate.ByteCode.LinFu
  4. {
  5. public class ProxyFactoryFactory : IProxyFactoryFactory
  6. {
  7. #region IProxyFactoryFactory Members
  8. public IProxyFactory BuildProxyFactory()
  9. {
  10. return new ProxyFactory();
  11. }
  12. public IProxyValidator ProxyValidator
  13. {
  14. // TODO : LinFu need a specific proxy validator because need virtual methods even when we are using an interface as proxy
  15. get { return new DynProxyTypeValidator(); }
  16. }
  17. #endregion
  18. }
  19. }