From the course: Spring: Spring Batch

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Implementing custom processor logic

Implementing custom processor logic

From the course: Spring: Spring Batch

Start my 1-month free trial

Implementing custom processor logic

- [Instructor] When we need our own custom processing logic, spring batch allows us to create a custom item processor implementation. The logic within an item processor often is used to transform items to meet business requirements. Let's take a look at how we can implement our own custom item processor to transform an order for H+ Sports into an order that includes some tracking information regarding a shipment. So you'll notice within the working files for this lesson, I've added a new POJO. And this POJO is the tracked order POJO. And it extends our order objects so it has all those fields, but it does include two additional pieces of information. One is the tracking number., And then another is a Boolean that indicates whether or not the tracked order is going to receive free shipping. We're going to take a look at how we can create an item processor implementation that will transform an order into a tracked order.…

Contents