title: Allow optional (null) property injection in Castle Windsor via factory method?
body: <p>I've registered a component </p>
  
  <pre><code>container.Register(Component.For&lt;XType&gt;()
   .LifeStyle.Is(LifestyleType.Transient)
   .UsingFactoryMethod(SomeMethod));
  </code></pre>
  
  <p>and am currently using this for property injection on my ASP.NET MVC controllers. However - my current problem is that SomeMethod can return null sometimes. Castle is not all too happy about this and complains about a null instance.</p>
  
  <p>Is there a neat way to configure Windsor to allow this component to be null? I've been exploring the docs but haven't found a way to do it.</p>
  
  <p>Thanks.</p>