[Springnet-commits] Spring.Net/doc/reference/src objects.xml, 1.107, 1.108
Brought to you by:
aseovic,
markpollack
From: Bruno B. <bb...@us...> - 2007-10-11 13:01:52
|
Update of /cvsroot/springnet/Spring.Net/doc/reference/src In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv30928 Modified Files: objects.xml Log Message: Added an example for the VariablePlaceholderConfigurer. Index: objects.xml =================================================================== RCS file: /cvsroot/springnet/Spring.Net/doc/reference/src/objects.xml,v retrieving revision 1.107 retrieving revision 1.108 diff -C2 -d -r1.107 -r1.108 *** objects.xml 9 Sep 2007 22:53:12 -0000 1.107 --- objects.xml 11 Oct 2007 13:01:43 -0000 1.108 *************** *** 3779,3795 **** <note> ! In an ASP.NET environment you must specify the full, four-part name of the assembly when using a ! ! <classname>NameValueFileSectionHandler</classname> ! ! ; to wit... </note> ! ! <programlisting><section name="hibernateConfiguration" ! type="System.Configuration.NameValueFileSectionHandler, System, ! Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/></programlisting> ! ! <para>Type name substitution</para> ! <sect4> <title>Type, Ref, and Expression substitution</title> --- 3779,3791 ---- <note> ! In an ASP.NET environment you must specify the full, four-part name ! of the assembly when using a <classname>NameValueFileSectionHandler</classname> ! <programlisting> ! <section name="hibernateConfiguration" ! type="System.Configuration.NameValueFileSectionHandler, System, ! Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/> ! </programlisting> </note> ! <sect4> <title>Type, Ref, and Expression substitution</title> *************** *** 3917,3969 **** <title>IVariableSource</title> ! <para>The IVariableSource is the base interface for providing the ! ability to get the value of property placeholders (name-value) pairs ! from a variety of sources. Out of the box, Spring.NET supports a ! number of variable sources that allow users to obtain variable values ! from .NET config files, java-style property files, environment ! variables, command line arguments and the registry and the new ! connection strings configuraiton section in .NET 2.0. The list of ! implementing classes is listed below. Please refer to the SDK ! documentation for more information.</para> <itemizedlist> <listitem> ! <para><classname>ConfigSectionVariableSource</classname></para> </listitem> <listitem> ! <para><classname>PropertyFileVariableSource</classname></para> </listitem> <listitem> ! <para><classname>EnvironmentVariableSource</classname></para> </listitem> <listitem> ! <para><classname>CommandLineArgsVariableSource</classname></para> </listitem> <listitem> ! <para><classname>RegistryVariableSource</classname></para> </listitem> <listitem> ! <para><classname>SpecialFolderVariableSource</classname></para> </listitem> <listitem> ! <para><classname>ConnectionStringsVariableSource</classname></para> </listitem> </itemizedlist> ! <para>You use this by defining an instance of ! <classname>Spring.Objects.Factory.Config.VariablePlaceholderConfigurer</classname> ! in your configuraiton and set the property ! <literal>VariableSource</literal> to a single ! <classname>IVariableSource</classname> instance or the list property ! VariableSources to a list of <classname>IVariableSource</classname> ! instances. In the case of the same property defined in multiple ! <classname>IVariableSource</classname> implementations, the first one ! in the list that contains the property value will be used.</para> </sect3> </sect2> --- 3913,3993 ---- <title>IVariableSource</title> ! <para> ! The IVariableSource is the base interface for providing the ! ability to get the value of property placeholders (name-value) pairs ! from a variety of sources. Out of the box, Spring.NET supports a ! number of variable sources that allow users to obtain variable values ! from .NET config files, java-style property files, environment ! variables, command line arguments and the registry and the new ! connection strings configuraiton section in .NET 2.0. The list of ! implementing classes is listed below. Please refer to the SDK ! documentation for more information. ! </para> <itemizedlist> <listitem> ! <para> ! <classname>ConfigSectionVariableSource</classname> ! </para> </listitem> <listitem> ! <para> ! <classname>PropertyFileVariableSource</classname> ! </para> </listitem> <listitem> ! <para> ! <classname>EnvironmentVariableSource</classname> ! </para> </listitem> <listitem> ! <para> ! <classname>CommandLineArgsVariableSource</classname> ! </para> </listitem> <listitem> ! <para> ! <classname>RegistryVariableSource</classname> ! </para> </listitem> <listitem> ! <para> ! <classname>SpecialFolderVariableSource</classname> ! </para> </listitem> <listitem> ! <para> ! <classname>ConnectionStringsVariableSource</classname> ! </para> </listitem> </itemizedlist> ! <para> ! You use this by defining an instance of ! <classname>Spring.Objects.Factory.Config.VariablePlaceholderConfigurer</classname> ! in your configuraiton and set the property ! <literal>VariableSource</literal> to a single ! <classname>IVariableSource</classname> instance or the list property ! <literal>VariableSources</literal> to a list of <classname>IVariableSource</classname> ! instances. In the case of the same property defined in multiple ! <classname>IVariableSource</classname> implementations, the first one ! in the list that contains the property value will be used. ! <programlisting><object type="Spring.Objects.Factory.Config.VariablePlaceholderConfigurer, Spring.Core"> ! <property name="VariableSources"> ! <list> ! <object type="Spring.Objects.Factory.Config.ConfigSectionVariableSource, Spring.Core"> ! <property name="SectionNames" value="CryptedConfiguration" /> ! </object> ! </list> ! </property> ! </object> ! </programlisting> ! </para> </sect3> </sect2> |