org.springframework.batch.item.transform
Class CompositeItemTransformer

java.lang.Object
  extended by org.springframework.batch.item.transform.CompositeItemTransformer
All Implemented Interfaces:
ItemTransformer, InitializingBean

public class CompositeItemTransformer
extends Object
implements ItemTransformer, InitializingBean

Composite ItemTransformer that passes the item through a sequence of injected ItemTransformers (return value of previous transformation is the entry value of the next).

Author:
Robert Kasanicky

Constructor Summary
CompositeItemTransformer()
           
 
Method Summary
 void afterPropertiesSet()
           
 void setItemTransformers(List itemTransformers)
           
 Object transform(Object item)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeItemTransformer

public CompositeItemTransformer()
Method Detail

transform

public Object transform(Object item)
                 throws Exception
Specified by:
transform in interface ItemTransformer
Throws:
Exception

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface InitializingBean
Throws:
Exception

setItemTransformers

public void setItemTransformers(List itemTransformers)
Parameters:
itemTransformers - will be chained to produce a composite transformation.


Copyright © 2009 SpringSource. All Rights Reserved.