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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
267
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8"?>
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
2 <container xmlns="http://implab.org/schemas/servicehost/unity.v1.xsd">
272
9d1cca834b05 preview version of Unity xml configuration
cin
parents: 270
diff changeset
3 <namespace name="System"/>
277
963b17c275be Refactoring
cin
parents: 274
diff changeset
4 <namespace name="System.Collections.Generic"/>
270
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
5 <namespace name="Implab.Playground"/>
272
9d1cca834b05 preview version of Unity xml configuration
cin
parents: 270
diff changeset
6
267
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
7 <!-- foo1 -->
269
ff581cff7003 Working on Unity container xml configuration
cin
parents: 267
diff changeset
8 <register name="foo1" type="Foo">
270
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
9 <property name="Name">
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
10 <value>FOO!</value>
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
11 </property>
267
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
12 </register>
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
13
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
14 <!-- foo2 -->
269
ff581cff7003 Working on Unity container xml configuration
cin
parents: 267
diff changeset
15 <register name="foo2" type="Foo">
270
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
16 <property name="Name">
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
17 <value>GOOD</value>
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
18 </property>
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
19 <property name="IntValue">
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
20 <value>2</value>
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
21 </property>
267
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
22 </register>
270
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
23
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
24 <register type="Foo">
277
963b17c275be Refactoring
cin
parents: 274
diff changeset
25 <method name="AddRange">
963b17c275be Refactoring
cin
parents: 274
diff changeset
26 <array itemsType="Foo">
963b17c275be Refactoring
cin
parents: 274
diff changeset
27 <dependency name="foo2"/>
963b17c275be Refactoring
cin
parents: 274
diff changeset
28 </array>
963b17c275be Refactoring
cin
parents: 274
diff changeset
29 </method>
270
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
30 </register>
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
31
273
79110a16cab7 Working on Unity xml configuration: Refactoring in progress
cin
parents: 272
diff changeset
32 <register type="IContainer{}" mapTo="Container{}">
270
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
33 <constructor/>
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
34 <method name="SetInstance">
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
35 <dependency type="T"/>
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
36 </method>
277
963b17c275be Refactoring
cin
parents: 274
diff changeset
37 <method name="AddRange">
963b17c275be Refactoring
cin
parents: 274
diff changeset
38 <array itemsType="T">
963b17c275be Refactoring
cin
parents: 274
diff changeset
39 <dependency name="foo2"/>
963b17c275be Refactoring
cin
parents: 274
diff changeset
40 </array>
963b17c275be Refactoring
cin
parents: 274
diff changeset
41 </method>
963b17c275be Refactoring
cin
parents: 274
diff changeset
42 </register>
963b17c275be Refactoring
cin
parents: 274
diff changeset
43
963b17c275be Refactoring
cin
parents: 274
diff changeset
44 <register type="List{}">
963b17c275be Refactoring
cin
parents: 274
diff changeset
45 <constructor />
270
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
46 </register>
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
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
9d1cca834b05 preview version of Unity xml configuration
cin
parents: 270
diff changeset
49 <constructor/>
9d1cca834b05 preview version of Unity xml configuration
cin
parents: 270
diff changeset
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
9d1cca834b05 preview version of Unity xml configuration
cin
parents: 270
diff changeset
52 </method>
270
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
53 </register>
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
54
273
79110a16cab7 Working on Unity xml configuration: Refactoring in progress
cin
parents: 272
diff changeset
55 <serialized type="Foo+Bar">
274
22629bf26121 Unity xml configuration, alpha2
cin
parents: 273
diff changeset
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
963b17c275be Refactoring
cin
parents: 274
diff changeset
64 <factory name="foo3" type="FooFactory">
963b17c275be Refactoring
cin
parents: 274
diff changeset
65 <parameter name="FooName"><![CDATA[Wired "" objecty <> name @#$%^&]]></parameter>
963b17c275be Refactoring
cin
parents: 274
diff changeset
66 </factory>
963b17c275be Refactoring
cin
parents: 274
diff changeset
67
267
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
68 </container>