1 <?xml version="1.0" encoding="utf-8" ?>
\r
5 Please note the usage of service and type attributes.
\r
6 Windsor will automatically installs the components and
\r
7 facilities with a type attribute (and optionally service
\r
13 This is a facility configuration example:
\r
17 <facility id="nhibernate" type="Full Type Name, AssemblyName">
\r
28 <component id="smtpemailsender"
\r
29 service="ComplexConfiguration.IEmailSender, ComplexConfiguration"
\r
30 type="ComplexConfiguration.Components.SmtpEmailSender, ComplexConfiguration">
\r
36 The following nodes will be converted to an array of String
\r
37 which is what the component expects. If the component expected
\r
38 an int[], the MicroKernel would try to convert each element
\r
41 The MicroKernel also supports
\r
43 <dict keyType="System.String, mscorlib" valueType="System.Int32, mscorlib">
\r
44 <item key="key1">1</item>
\r
45 <item key="key2">2</item>
\r
49 <list type="typetobeconverted">
\r
55 <elem>MyFirstHost</elem>
\r
56 <elem>OtherHost</elem>
\r
63 <component id="newsletter"
\r
64 service="ComplexConfiguration.INewsletterService, ComplexConfiguration"
\r
65 type="ComplexConfiguration.Components.SimpleNewsletterService, ComplexConfiguration">
\r
68 <!-- This argument will be converted to a System.Type -->
\r
69 <sometype>System.Collections.IList, mscorlib</sometype>
\r
70 <!-- Here we're overriding which IEmailSender implementation
\r
71 this component should use -->
\r
72 <sender>${smtpemailsender}</sender>
\r
73 <!-- Same thing for ITemplateEngine -->
\r
74 <templateEngine>${nvelocityengine}</templateEngine>
\r
79 <component id="nvelocityengine"
\r
80 service="ComplexConfiguration.ITemplateEngine, ComplexConfiguration"
\r
81 type="ComplexConfiguration.Components.NVelocityTemplateEngine, ComplexConfiguration" />
\r