org.springframework.batch.sample.domain.order.internal
Class OrderLineAggregator
java.lang.Object
org.springframework.batch.sample.domain.order.internal.OrderLineAggregator
- All Implemented Interfaces:
- LineAggregator<Order>
public class OrderLineAggregator
- extends Object
- implements LineAggregator<Order>
Converts Order
object to a list of strings.
- Author:
- Dave Syer, Dan Garrette
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OrderLineAggregator
public OrderLineAggregator()
aggregate
public String aggregate(Order order)
- Description copied from interface:
LineAggregator
- Create a string from the value provided.
- Specified by:
aggregate
in interface LineAggregator<Order>
- Parameters:
order
- values to be converted
- Returns:
- string
setAggregators
public void setAggregators(Map<String,LineAggregator<Object>> aggregators)
- Set aggregators for all types of lines in the output file
- Parameters:
aggregators
-
Copyright © 2009 SpringSource. All Rights Reserved.