comparison Implab.Playground/data/sample.xml @ 277:963b17c275be v3

Refactoring Added <array> element to injection parameters Working on registrations of factories
author cin
date Sat, 28 Apr 2018 18:48:09 +0300
parents 22629bf26121
children 6691aff01de1
comparison
equal deleted inserted replaced
276:b4e0f81c7425 277:963b17c275be
1 <?xml version="1.0" encoding="UTF-8"?> 1 <?xml version="1.0" encoding="UTF-8"?>
2 <container xmlns="http://implab.org/schemas/servicehost/unity.v1.xsd"> 2 <container xmlns="http://implab.org/schemas/servicehost/unity.v1.xsd">
3 <namespace name="System"/> 3 <namespace name="System"/>
4 <namespace name="System.Collections.Generic"/>
4 <namespace name="Implab.Playground"/> 5 <namespace name="Implab.Playground"/>
5 6
6 <!-- foo1 --> 7 <!-- foo1 -->
7 <register name="foo1" type="Foo"> 8 <register name="foo1" type="Foo">
8 <property name="Name"> 9 <property name="Name">
19 <value>2</value> 20 <value>2</value>
20 </property> 21 </property>
21 </register> 22 </register>
22 23
23 <register type="Foo"> 24 <register type="Foo">
25 <method name="AddRange">
26 <array itemsType="Foo">
27 <dependency name="foo2"/>
28 </array>
29 </method>
24 </register> 30 </register>
25 31
26 <register type="IContainer{}" mapTo="Container{}"> 32 <register type="IContainer{}" mapTo="Container{}">
27 <constructor/> 33 <constructor/>
28 <method name="SetInstance"> 34 <method name="SetInstance">
29 <dependency type="T"/> 35 <dependency type="T"/>
30 </method> 36 </method>
37 <method name="AddRange">
38 <array itemsType="T">
39 <dependency name="foo2"/>
40 </array>
41 </method>
42 </register>
43
44 <register type="List{}">
45 <constructor />
31 </register> 46 </register>
32 47
33 <register type="IContainer{String}" mapTo="Container{String}"> 48 <register type="IContainer{String}" mapTo="Container{String}">
34 <constructor/> 49 <constructor/>
35 <method name="SetInstance"> 50 <method name="SetInstance">
44 </serialized> 59 </serialized>
45 60
46 <value name="connection1" type="String"><![CDATA[Connect me <here>!]]></value> 61 <value name="connection1" type="String"><![CDATA[Connect me <here>!]]></value>
47 <value name="name1" type="String" value="Hello!"/> 62 <value name="name1" type="String" value="Hello!"/>
48 63
64 <factory name="foo3" type="FooFactory">
65 <parameter name="FooName"><![CDATA[Wired "" objecty <> name @#$%^&]]></parameter>
66 </factory>
67
49 </container> 68 </container>