title: How to reference Spring.Net's ObjectFactory in the config?
body: <p>I would like to use prototype interceptors instead of a singleton interceptor so each session would get a new interceptor instance.</p>
  
  <p>I looked into the HibernateTransactionManager Class and I think "EntityInterceptorObjectName" and "ObjectFactory" are the properties I have to set.</p>
  
  <p>While EntityInterceptorObjectName is pretty obvious, <strong>I have no clue how to reference the ObjectFactory</strong> when it's the "mother of the ObjectFactories", e.g. the same ObjectFactory which creates the AppContext/the HibernateTransactionManager.</p>
  
  <p>The relevant part of the config:</p>
  
  <pre><code>   &lt;object id="HibernateTransactionManager" type="Spring.Data.NHibernate.HibernateTransactionManager, Spring.Data.NHibernate20"&gt;
      &lt;property name="DbProvider" ref="DbProvider"/&gt;
      &lt;property name="SessionFactory" ref="SessionFactory"/&gt;
      &lt;!-- the name of my non-Singleton EntityInterceptor--&gt;
       &lt;property name="EntityInterceptorObjectName" value="MyPrototypeEntityInterceptor" /&gt;
      &lt;!-- What should I put as ref here? --&gt;
      &lt;property name="ObjectFactory" ref="" /&gt;
    &lt;/object&gt;
  
    &lt;object id="MyPrototypeEntityInterceptor" type="Hib.EntityInterceptor, Hib.Interceptors" singleton="false"&gt;
    &lt;/object&gt;  
  </code></pre>