[Index]
bus:driver
Drives data from an iterable (such as a list)
through a Bean Bus. It can also be used outside Bean Bus to push data to any java.util.function.Consumer
.
Property Summary
Example Summary
Property Detail
count
name
Configured By | ATTRIBUTE |
Access | READ_WRITE |
to
Configured By | ELEMENT |
Access | READ_WRITE |
values
Configured By | ELEMENT |
Access | READ_WRITE |
Examples
Example 1
Drive 3 Beans through a Bean Bus.
<oddjob>
<job>
<bus:bus id="bean-bus" xmlns:bus="oddjob:beanbus">
<of>
<bus:driver>
<values>
<list>
<values>
<bean class="org.oddjob.beanbus.example.Fruit" quantity="42" type="Apple" price="25.5"/>
<bean class="org.oddjob.beanbus.example.Fruit" quantity="24" type="Banana" price="36.2"/>
<bean class="org.oddjob.beanbus.example.Fruit" quantity="15" type="Pear" price="40.4"/>
</values>
</list>
</values>
</bus:driver>
<bus:map>
<function>
<bean class="org.oddjob.beanbus.example.DoublePrice"/>
</function>
</bus:map>
<bus:collect id="results"/>
</of>
</bus:bus>
</job>
</oddjob>
(c) R Gordon Ltd 2005 - Present