Skip to content

Commit

Permalink
Fix typo in adapter factory extensions
Browse files Browse the repository at this point in the history
Signed-off-by: Taeik Lim <[email protected]>
  • Loading branch information
acktsap committed Mar 10, 2024
1 parent 93e8af5 commit bdea73c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,19 @@ import org.springframework.batch.item.ItemStreamReader
import org.springframework.batch.item.ItemStreamWriter

/**
* A extensions to invoke [AdapterFactory.itemStreamReader].
* An extensions to invoke [AdapterFactory.itemStreamReader].
*/
fun <T : Any> ItemStreamReaderDelegate<T>.asItemStreamReader(): ItemStreamReader<T> =
AdapterFactory.itemStreamReader(this)

/**
* A extensions to invoke [AdapterFactory.itemProcessor].
* An extensions to invoke [AdapterFactory.itemProcessor].
*/
fun <I : Any, O : Any> ItemProcessorDelegate<I, O>.asItemProcessor(): ItemProcessor<I, O> =
AdapterFactory.itemProcessor(this)

/**
* A extensions to invoke [AdapterFactory.itemStreamWriter].
* An extensions to invoke [AdapterFactory.itemStreamWriter].
*/
fun <T : Any> ItemStreamWriterDelegate<T>.asItemStreamWriter(): ItemStreamWriter<T> =
AdapterFactory.itemStreamWriter(this)

0 comments on commit bdea73c

Please sign in to comment.