How to import a resource when using Castle Windsor

Posted by Gilbert on Stack Overflow See other posts from Stack Overflow or by Gilbert
Published on 2010-04-15T13:09:44Z Indexed on 2010/04/15 13:13 UTC
Read the original article Hit count: 416

Filed under:
|
|
|
|

Hi,

When using spring.net, i can use

<springDestinations>
      <objects xmlns="http://www.springframework.net">
        <import resource="file://~/Config/blablabla.xml"/>
      </objects>
    </springDestinations>

Using Castle Windsor, i have the following components

<components>
  <component id="Retriever" service="Model.Services.Remote.IRetriever, Model" type="Model.Services.Remote.Retriever, Model">
    <parameters>
      <resourceUrl>http://localhost:8888/Service.svc/</resourceUrl>          
    </parameters>
  </component>
</components>

I'd like to to hold my components in a separate xml file for production, development etc etc. Can this be done with Castle Windsor?

Thanks :-)

© Stack Overflow or respective owner

Related posts about castle-windsor

Related posts about Xml