SPRNET-1358 : Allow for ignoring of resources not found in PropertyFileVariableSource
SPRNET-1356 : Introduce IPriorityOrdered interface to ensure correct ordering among IObjectFactoryPostProcessors SPRNET-1355 : TypeAlias usage with other IObjectFactoryPostProcessor object definitions not working. work started on SPRNET-1262 fix 2003/2005 solution builds
This commit is contained in:
@@ -5028,13 +5028,22 @@ cfg.PostProcessObjectFactory(factory);</programlisting></para>
|
||||
value will be used. <programlisting language="myxml"><object type="Spring.Objects.Factory.Config.VariablePlaceholderConfigurer, Spring.Core">
|
||||
<property name="VariableSources">
|
||||
<list>
|
||||
<object type="Spring.Objects.Factory.Config.PropertyFileVariableSource, Spring.Core">
|
||||
<property name="Location" value="~\application.properties" />
|
||||
<property name="IgnoreMissingResources" value="true"/>
|
||||
</object>
|
||||
<object type="Spring.Objects.Factory.Config.ConfigSectionVariableSource, Spring.Core">
|
||||
<property name="SectionNames" value="CryptedConfiguration" />
|
||||
</object>
|
||||
</list>
|
||||
</property>
|
||||
</object>
|
||||
</programlisting>The IVariableSource interface is shown below</para>
|
||||
</programlisting><note>
|
||||
<para>The use of the <property>IgnoreMissingResources</property>
|
||||
property above will mean that if the property file is not found it
|
||||
will be silently ignored and the resolution will continue to
|
||||
<classname>ConfigSectionVariableSource</classname>. </para>
|
||||
</note>The IVariableSource interface is shown below</para>
|
||||
|
||||
<programlisting language="csharp">public interface IVariableSource
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user