diff --git a/docs/src/site/docbook/reference/readersAndWriters.xml b/docs/src/site/docbook/reference/readersAndWriters.xml index 86c414e25..a0cb431fa 100644 --- a/docs/src/site/docbook/reference/readersAndWriters.xml +++ b/docs/src/site/docbook/reference/readersAndWriters.xml @@ -1101,7 +1101,7 @@ spring applications, this solution is good enough. Resources are primarily used to load spring application context files, and perhaps a properties file. The names of these are known at compile time. However, in many batch - scenarios, a the file name may need to be determined at runtime as a + scenarios, the file name may need to be determined at runtime as a parameter to the job. This could be solved using a PropertyPlaceholderConfigurer and '-D' parameters. (System arguments): @@ -1115,7 +1115,7 @@ All that would be required for this solution to work would be a placeholder configurer in the ApplicationContext and the system arguments provided. (-Dfile.name="/file.txt") This solution - will work, but it would be much preffered to place the file name in the + will work, but it would be much preferred to place the file name in the JobParameters of the job and access them that way. To allow for this, Spring Batch provides the StepExecutionResourceProxy. The proxy can use @@ -1129,7 +1129,7 @@ Assuming a job name of 'fooJob', and a step name of 'fooStep', and the key-value pair of 'file.name="fileName.txt' is in the - JobParameters the job is start with, the folling + JobParameters the job is start with, the following filename will be passed as the Resource: "/fooJob/fooStep/fileName.txt". It should be noted that in order for the proxy to have access to the @@ -1867,7 +1867,7 @@ itemReader.close(executionContext); transformer, before writing it. For example, assuming an ItemReader provides a class of type Foo, and it needs to be converted to type Bar before being written out. An - ItemTransformer can be written that perform the + ItemTransformer can be written that performs the conversion: public class Foo {}