title: Castle Windsor Generic Typed Factory
body: <p>On Kozmic's blog (dated 2009), he recommends a Generic Factory to retrieve objects from container. Well, this seems like a pseudo service locator to me. So I want to ask the opinion from experts here.</p>
  
  <pre><code>  public interface IGenericFactory
    {
          T Create&lt;T&gt;();
    }
  </code></pre>
  
  <p>Can I use this to fetch objects from Windsor container? Are there any downsides to this approach?</p>
  
  <p><strong>Update:</strong></p>
  
  <p>Actually, I want to use it to get only a few transients that I do not want to create multiple factories for. Having one factory for all such scenarios.</p>