1
我想將組件保存在單獨的xml文件中進行生產,開發等等。可以使用Castle Windsor完成這項工作嗎?如何在使用Castle Windsor時導入資源
當使用spring.net,我可以使用
<springDestinations>
<objects xmlns="http://www.springframework.net">
<import resource="file://~/Config/blablabla.xml"/>
</objects>
</springDestinations>
使用溫莎城堡,我有以下部件
<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>
感謝:-)
非常感謝您的幫助。 – Gilbert 2010-04-16 08:09:21