concept Tasklet in category spring

This is an excerpt from Manning's book Spring Batch in Action.
Spring Batch provides an extension point to handle processing in a batch process step: the Tasklet. You implement a Tasklet that decompresses a ZIP archive into its source flat file. The following listing shows the implementation of the DecompressTasklet class.
Spring Batch domain object
ImportValidatorTest JobParametersValidator CompositeItemProcessorTest ItemProcessor ProductFieldSetMapperTest ItemReader PriceMandatoryValidatorTest Validator in an ItemProcessor PositivePriceValidatorTest Validator in an ItemProcessor ProductItemWriterMockTest ItemWriter ProductItemListener StepListener NextDeciderTest JobExecutionDecider CleanTaskletTest Tasklet
The Test module opens up Spring Batch domain objects to be tested. Classes like JobExecutionDecider and Tasklet, for example, have APIs that require the types of objects supplied by MetaDataInstanceFactory.
You can also manipulate complex Spring Batch domain objects like a ChunkContext (a requirement of the Tasklet API) with the MetaDataInstanceFactory class. The following listing demonstrates testing such a tasklet.