From 6b055700404cc74daf8d3739a3393216d51f54a5 Mon Sep 17 00:00:00 2001 From: Marijn van der Zee Date: Fri, 16 Dec 2011 17:39:14 +0100 Subject: [PATCH] VariablePlaceHolderConfigurer example --- doc/reference/src/objects.xml | 56 ++++++++--------------------------- 1 file changed, 12 insertions(+), 44 deletions(-) diff --git a/doc/reference/src/objects.xml b/doc/reference/src/objects.xml index abc2c657..7ab0bf1a 100644 --- a/doc/reference/src/objects.xml +++ b/doc/reference/src/objects.xml @@ -4961,51 +4961,19 @@ cfg.PostProcessObjectFactory(factory); - IVariableSource + Example: The + <literal>VariablePlaceholderConfigurer</literal> - 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 configuration section in .NET 2.0. The - list of implementing classes is listed below. Please refer to the SDK - documentation for more information. - - - - ConfigSectionVariableSource - - - - PropertyFileVariableSource - - - - EnvironmentVariableSource - - - - CommandLineArgsVariableSource - - - - RegistryVariableSource - - - - SpecialFolderVariableSource - - - - ConnectionStringsVariableSource - - - - ConfigurableVariableSource - - + The VariablePlaceholderConfigurer is an + evolution of the PropertyPlaceHolderConfigurer. 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 + configuration section in .NET 2.0. It is possible to add your own + variable sources to a VariablePlaceholderConfigurer + by implementing the IVariableSource + interface. You use this by defining an instance of Spring.Objects.Factory.Config.VariablePlaceholderConfigurer