title: Why does StructureMap doesn't inject a property?
body: <p>I have created a class which inherit from the <code>Registry</code> class. In this class I want to inject a property:</p>
  
  <pre><code>ForConcreteType&lt;Person&gt;()
      .Configure
      .Setter(s =&gt; s.PersonSpecializationManager)
      .Is(t =&gt; t.GetInstance&lt;IPersonSpecializationManager&gt;());
  </code></pre>
  
  <p>The property definition is as follows:</p>
  
  <pre><code>/// &lt;summary&gt;
  /// Gets or sets the person specialization manager
  /// &lt;/summary&gt;
  public virtual IPersonSpecializationManager PersonSpecializationManager
  {
      get
      {
          return _personSpecializationManager;
      }
      set
      {
          _personSpecializationManager = value;
      }
  }
  </code></pre>
  
  <p>I can't use constructor injection, because the <code>Person</code> is created by NHibernate. And since NHibernate requires an empty constructor, I am forced to do it this way. I am aware of the fact that I could introduce another class which handles the <code>_personSpecializationManager</code> stuff, but I can't do that.</p>
  
  <p>The above class which inherit from the <code>Registry</code> class is configured in StructureMap. When I place a breakpoint at the line <code>ForConcreteType&lt;Person&gt;() ...</code>, the breakpoint is hit. So I know it should be processed by StructureMap.</p>
  
  <p>So, my question is, why isn't StructureMap injection my property?</p>