org.springframework.batch.item.transform
Class CompositeItemTransformer
java.lang.Object
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 ItemTransformer
s (return value of previous transformation
is the entry value of the next).
- Author:
- Robert Kasanicky
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompositeItemTransformer
public CompositeItemTransformer()
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.