Package org.oddjob.beanbus.destinations
Class UnPack<T>
java.lang.Object
org.oddjob.beanbus.destinations.UnPack<T>
- Type Parameters:
T- The type of bean being batched.
- Author:
- Rob
Description
Takes an Iterable and Unpacks it.Example
Un Batching 2 Lists.
<oddjob>
<job>
<bus:bus id="bean-bus" xmlns:bus="oddjob:beanbus">
<of>
<bus:driver>
<values>
<list>
<values>
<list>
<values>
<value value="Apple"/>
<value value="Orange"/>
</values>
</list>
<list>
<values>
<value value="Pear"/>
<value value="Kiwi"/>
<value value="Banana"/>
</values>
</list>
</values>
</list>
</values>
</bus:driver>
<bean id="unbatch" class="org.oddjob.beanbus.destinations.UnPack"/>
<bus:collect id="results"/>
</of>
</bus:bus>
</job>
</oddjob>
-
Constructor Details
-
UnPack
public UnPack()
-
-
Method Details
-
reset
public void reset() -
accept
-
getCount
public int getCount() -
getTo
-
setTo
Description copied from interface:OutboundSet the out bound destination. -
getName
-
setName
-
toString
-