Skip to content
This repository
tree: c66119ec65
Fetching contributors…

Cannot retrieve contributors at this time

file 99 lines (79 sloc) 4.288 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
<!--<?xml version="1.0" encoding="utf-8" ?>-->
<StructureMap DefaultProfile="TheDefaultProfile" Id="Main">
<Assembly Name="StructureMap.Testing.Widget" Deploy="Client, Test, Server"/>
<Assembly Name="StructureMap.Testing.Widget2" Deploy="Remote"/>
<Assembly Name="StructureMap.Testing.Widget3"/>


<Profile Name="TheDefaultProfile">
<Override Type="StructureMap.Testing.Widget.GrandChild,StructureMap.Testing.Widget" DefaultKey="Todd"/>
</Profile>

<PluginFamily Type="StructureMap.Testing.Widget.IWidget" Assembly="StructureMap.Testing.Widget" DefaultKey="Red">
<Source Type="XmlFile" FilePath="FullTesting.XML" XPath="Widgets" NodeName="Widget"/>
<Plugin Assembly="StructureMap.Testing.Widget" Type="StructureMap.Testing.Widget.NotPluggableWidget" ConcreteKey="NotPluggable"/>
</PluginFamily>

<!-- If no source is defined, use the default MementoSource -->
<PluginFamily Type="StructureMap.Testing.Widget.Column" Assembly="StructureMap.Testing.Widget">
<Source Type="XmlFile" FilePath="FullTesting.XML" XPath="Columns" NodeName="Columns" />
</PluginFamily>


<PluginFamily Type="StructureMap.Testing.Widget.Rule" Assembly="StructureMap.Testing.Widget" DefaultKey="Blue">
<Interceptors>
<Interceptor Type="Singleton"></Interceptor>
</Interceptors>

<Instance Key="Red" Type="Color">
<Property Name="color" Value="Red" />
</Instance>
<Instance Key="Blue" Type="Color">
<Property Name="color" Value="Blue" />
</Instance>
<Instance Key="Bigger" Type="GreaterThan">
<Property Name="Attribute" Value="MyDad" />
<Property Name="Value" Value="10" />
</Instance>
</PluginFamily>

  <AddInstance PluginType="StructureMap.Testing.Widget.GrandChild, StructureMap.Testing.Widget" Type="Default" Key="Tommy">
    <Property Name="RightHanded" Value="true" />
    <Property Name="BirthYear" Value="1972" />
  </AddInstance>

  <AddInstance PluginType="StructureMap.Testing.Widget.GrandChild, StructureMap.Testing.Widget" Type="Default" Key="Todd">
    <Property Name="RightHanded" Value="true" />
    <Property Name="BirthYear" Value="1975" />
  </AddInstance>

  <AddInstance PluginType="StructureMap.Testing.Widget.GrandChild, StructureMap.Testing.Widget" Type="Leftie" Key="Trevor">
    <Property Name="BirthYear" Value="1979" />
  </AddInstance>

  <AddInstance PluginType="StructureMap.Testing.Widget.Child, StructureMap.Testing.Widget" Type="Default" Key="Tom">
    <Property Name="Name" Value="Tom" />
    <Property Name="MyGrandChild" Type="Leftie">
      <Property Name="BirthYear" Value="1984" />
    </Property>
  </AddInstance>

  <AddInstance PluginType="StructureMap.Testing.Widget.Child, StructureMap.Testing.Widget" Type="Default" Key="Marsha">
    <Property Name="Name" Value="Marsha"/>
    <Property Name="MyGrandChild" Key="Tommy"/>
  </AddInstance>


  <AddInstance PluginType="StructureMap.Testing.Widget.Child, StructureMap.Testing.Widget" Type="Default" Key="Jessica">
    <Property Name="Name" Value="Jessica"/>
    <Property Name="MyGrandChild"/>
  </AddInstance>

  <AddInstance PluginType="StructureMap.Testing.Widget.Child, StructureMap.Testing.Widget" Type="Default" Key="Monte">
    <Property Name="Name" Value="Monte"/>
    <Property Name="MyGrandChild" Key="NotARealGrandchild"/>
  </AddInstance>

  <AddInstance PluginType="StructureMap.Testing.Widget.Parent, StructureMap.Testing.Widget" Type="Default" Key="Jerry">
    <Property Name="Age" Value="72"/>
    <Property Name="EyeColor" Value="Blue"/>
    <Property Name="MyChild" Key="Marsha"/>
  </AddInstance>

  <AddInstance PluginType="StructureMap.Testing.Widget.Parent, StructureMap.Testing.Widget" Type="Default" Key="Jackie">
    <Property Name="Age" Value="70"/>
    <Property Name="EyeColor" Value="Green"/>
    <Property Name="MyChild" Type="Default">
      <Property Name="Name" Value="Elizabeth"/>
      <Property Name="MyGrandChild" Type="Leftie">
        <Property Name="BirthYear" Value="1992"/>
      </Property>
    </Property>
  </AddInstance>

  <AddInstance PluginType="StructureMap.Testing.Widget.WidgetMaker, StructureMap.Testing.Widget" Type="Color" Key="Red">
    <Property Name="color" Value="Red" />
  </AddInstance>


</StructureMap>
Something went wrong with that request. Please try again.