org.springframework.batch.sample.domain.order.internal
Class OrderLineAggregator

java.lang.Object
  extended by 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

Constructor Summary
OrderLineAggregator()
           
 
Method Summary
 String aggregate(Order order)
          Create a string from the value provided.
 void setAggregators(Map<String,LineAggregator<Object>> aggregators)
          Set aggregators for all types of lines in the output file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrderLineAggregator

public OrderLineAggregator()
Method Detail

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.