comparison Implab.Playground/data/sample.xml @ 272:9d1cca834b05 v3

preview version of Unity xml configuration
author cin
date Thu, 26 Apr 2018 03:14:54 +0300
parents ade80d94dfb5
children 79110a16cab7
comparison
equal deleted inserted replaced
271:d4d437ec4483 272:9d1cca834b05
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="Implab.Playground"/> 4 <namespace name="Implab.Playground"/>
4 5
5 <!-- foo1 --> 6 <!-- foo1 -->
6 <register name="foo1" type="Foo"> 7 <register name="foo1" type="Foo">
7 <property name="Name"> 8 <property name="Name">
8 <value>FOO!</value> 9 <value>FOO!</value>
9 </property> 10 </property>
20 </register> 21 </register>
21 22
22 <register type="Foo"> 23 <register type="Foo">
23 </register> 24 </register>
24 25
25 <register type="Container{}"> 26 <register provides="IContainer{}" type="Container{}">
26 <constructor/> 27 <constructor/>
27 <method name="SetInstance"> 28 <method name="SetInstance">
28 <dependency type="T"/> 29 <dependency type="T"/>
29 </method> 30 </method>
30 </register> 31 </register>
31 32
32 <register type="Container{String}"> 33 <register provides="IContainer{String}" type="Container{String}">
33 <property name="Instance"> 34 <constructor/>
34 <value>Hello!</value> 35 <method name="SetInstance">
35 </property> 36 <value type="String">Hello!</value>
37 </method>
36 </register> 38 </register>
37 39
38 </container> 40 </container>