diff --git a/doc/reference/src/objects.xml b/doc/reference/src/objects.xml index b8708cb5..81badcab 100644 --- a/doc/reference/src/objects.xml +++ b/doc/reference/src/objects.xml @@ -4607,7 +4607,7 @@ DEBUG - MovieApp Done. Customizing configuration metadata with - ObjectFactoryPostProcessors + IObjectFactoryPostProcessors The next extension point that we will look at is the Spring.Objects.Factory.Config.IObjectFactoryPostProcessor. @@ -4658,11 +4658,11 @@ DEBUG - MovieApp Done. An object factory post-processor is executed manually (in the case - of a IObjectFactory) or automatically (in the case of an - IApplicationContext) to apply changes of some sort to the configuration - metadata that defines a container. Spring.NET includes a number of - pre-existing object factory post-processors, such as - PropertyResourceConfigurer and + of a IObjectFactory) or automatically (in the case of + an IApplicationContext) to apply changes of some sort + to the configuration metadata that defines a container. Spring.NET + includes a number of pre-existing object factory post-processors, such + as PropertyResourceConfigurer and PropertyPlaceHolderConfigurer, both described below and ObjectNameAutoProxyCreator, which is very useful for wrapping other objects transactionally or with any other kind of proxy, as described @@ -4987,20 +4987,14 @@ cfg.PostProcessObjectFactory(factory); <property name="VariableSources"> <list> <object type="Spring.Objects.Factory.Config.PropertyFileVariableSource, Spring.Core"> - <property name="Location" value="~\application.properties" /> - <property name="IgnoreMissingResources" value="true"/> + <property name="Location" value="~\application.properties" /> </object> <object type="Spring.Objects.Factory.Config.ConfigSectionVariableSource, Spring.Core"> <property name="SectionNames" value="CryptedConfiguration" /> </object> </list> </property> -</object> - The use of the IgnoreMissingResources - property above will mean that if the property file is not found it - will be silently ignored and the resolution will continue to - ConfigSectionVariableSource. - +</object> The variable sources that Spring.NET provides out of the box are described in the following sections. @@ -5080,12 +5074,21 @@ cfg.PostProcessObjectFactory(factory); joan_age=35 You can use the ${joan_name} and - ${joan_age} variables if you configure the - following variable source: + ${joan_age} variables in your object definitions + if you configure the following variable source: - <object type="Spring.Objects.Factory.Config.PropertyFileVariableSource, Spring.Core"> + <object type="Spring.Objects.Factory.Config.PropertyFileVariableSource, Spring.Core"> <property name="Location" value="~\application.properties" /> -</object> + <property name="IgnoreMissingResources" value="true"/> +</object> + + + The use of the IgnoreMissingResources + property above will mean that if the property file is not found + it will be silently ignored and the resolution will continue to + the next variable source(s) of the + VariablePlaceholderConfigurer. +