diff --git a/doc/reference/src/objects.xml b/doc/reference/src/objects.xml index 5faa9a11..a98fa166 100644 --- a/doc/reference/src/objects.xml +++ b/doc/reference/src/objects.xml @@ -5064,8 +5064,8 @@ cfg.PostProcessObjectFactory(factory); Then you can use ${peggy_name} - and ${peter_age} as variable placeholders in your - object definitions. + and ${peter_age} as variables in your object + definitions. @@ -5080,8 +5080,8 @@ cfg.PostProcessObjectFactory(factory); joan_age=35 You can use the ${joan_name} and - ${joan_age} variable placeholders if you - configure the following variable source: + ${joan_age} variables if you configure the + following variable source: <object type="Spring.Objects.Factory.Config.PropertyFileVariableSource, Spring.Core"> <property name="Location" value="~\application.properties" /> @@ -5093,8 +5093,8 @@ joan_age=35 A ConfigurableVariableSource allows you define variables inline in a variable source definition. To - configure the variables midge_name and - midge_age, you can use the following + configure the variables ${midge_name} and + ${midge_age}, you can use the following ConfigurableVariableSource definition: <object type="Spring.Objects.Factory.Config.ConfigurableVariableSource, Spring.Core"> @@ -5111,7 +5111,8 @@ joan_age=35 <literal>CommandLineArgsVariableSource</literal> You can use commandline arguments as a source for variables. - Assume you issue the following command to start myapp: + Assume you issue the following command to start your application + myapp: myapp /roger_name:"Roger Sterling" /roger_age:57 @@ -5133,8 +5134,8 @@ joan_age=35 HKEY_CURRENT_USER\MyKey with entries freddy_name (String) and freddy_age (DWord), then you can configure the following variable - source to use freddy_name and - freddy_age as variables: + source to use ${freddy_name} and + ${freddy_age} as variables: <object type="Spring.Objects.Factory.Config.RegistryVariableSource, Spring.Core"> <property name="Key" value="HKEY_CURRENT_USER\MyKey" /> @@ -5153,8 +5154,8 @@ joan_age=35 <object type="Spring.Objects.Factory.Config.EnvironmentVariableSource, Spring.Core" /> - To resolve a variable named ken_name, the - EnvironmentVariableSource will directly call + To resolve a variable named ${ken_name}, + the EnvironmentVariableSource will directly call System.Environment.GetEnvironmentVariable("ken_name").