Mercurial > pub > ImplabNet
annotate 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 |
rev | line source |
---|---|
267 | 1 <?xml version="1.0" encoding="UTF-8"?> |
2 <container xmlns="http://implab.org/schemas/servicehost/unity.v1.xsd"> | |
272 | 3 <namespace name="System"/> |
277 | 4 <namespace name="System.Collections.Generic"/> |
270 | 5 <namespace name="Implab.Playground"/> |
272 | 6 |
267 | 7 <!-- foo1 --> |
269 | 8 <register name="foo1" type="Foo"> |
270 | 9 <property name="Name"> |
10 <value>FOO!</value> | |
11 </property> | |
267 | 12 </register> |
13 | |
14 <!-- foo2 --> | |
269 | 15 <register name="foo2" type="Foo"> |
270 | 16 <property name="Name"> |
17 <value>GOOD</value> | |
18 </property> | |
19 <property name="IntValue"> | |
20 <value>2</value> | |
21 </property> | |
267 | 22 </register> |
270 | 23 |
24 <register type="Foo"> | |
277 | 25 <method name="AddRange"> |
26 <array itemsType="Foo"> | |
27 <dependency name="foo2"/> | |
28 </array> | |
29 </method> | |
270 | 30 </register> |
31 | |
273
79110a16cab7
Working on Unity xml configuration: Refactoring in progress
cin
parents:
272
diff
changeset
|
32 <register type="IContainer{}" mapTo="Container{}"> |
270 | 33 <constructor/> |
34 <method name="SetInstance"> | |
35 <dependency type="T"/> | |
36 </method> | |
277 | 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 /> | |
270 | 46 </register> |
47 | |
273
79110a16cab7
Working on Unity xml configuration: Refactoring in progress
cin
parents:
272
diff
changeset
|
48 <register type="IContainer{String}" mapTo="Container{String}"> |
272 | 49 <constructor/> |
50 <method name="SetInstance"> | |
273
79110a16cab7
Working on Unity xml configuration: Refactoring in progress
cin
parents:
272
diff
changeset
|
51 <dependency type="String" name="name1"/> |
272 | 52 </method> |
270 | 53 </register> |
54 | |
273
79110a16cab7
Working on Unity xml configuration: Refactoring in progress
cin
parents:
272
diff
changeset
|
55 <serialized type="Foo+Bar"> |
274 | 56 <Bar xmlns="" id="1"> |
273
79110a16cab7
Working on Unity xml configuration: Refactoring in progress
cin
parents:
272
diff
changeset
|
57 <Name>Baaar</Name> |
79110a16cab7
Working on Unity xml configuration: Refactoring in progress
cin
parents:
272
diff
changeset
|
58 </Bar> |
79110a16cab7
Working on Unity xml configuration: Refactoring in progress
cin
parents:
272
diff
changeset
|
59 </serialized> |
79110a16cab7
Working on Unity xml configuration: Refactoring in progress
cin
parents:
272
diff
changeset
|
60 |
79110a16cab7
Working on Unity xml configuration: Refactoring in progress
cin
parents:
272
diff
changeset
|
61 <value name="connection1" type="String"><![CDATA[Connect me <here>!]]></value> |
79110a16cab7
Working on Unity xml configuration: Refactoring in progress
cin
parents:
272
diff
changeset
|
62 <value name="name1" type="String" value="Hello!"/> |
79110a16cab7
Working on Unity xml configuration: Refactoring in progress
cin
parents:
272
diff
changeset
|
63 |
277 | 64 <factory name="foo3" type="FooFactory"> |
65 <parameter name="FooName"><![CDATA[Wired "" objecty <> name @#$%^&]]></parameter> | |
66 </factory> | |
67 | |
267 | 68 </container> |