org.oddjob.beanbus
Class BeanTrap<T>
java.lang.Object
org.oddjob.beanbus.BeanTrap<T>
- All Implemented Interfaces:
- Iterable<T>, ArooaValue, ValueFactory<List<T>>, BusAware, Destination<T>
public class BeanTrap<T>
- extends Object
- implements Destination<T>, Iterable<T>, ValueFactory<List<T>>, BusAware
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BeanTrap
public BeanTrap()
accept
public void accept(T bean)
- Specified by:
accept in interface Destination<T>
setBus
public void setBus(BeanBus driver)
- Specified by:
setBus in interface BusAware
iterator
public Iterator<T> iterator()
- Specified by:
iterator in interface Iterable<T>
toValue
public List<T> toValue()
- Specified by:
toValue in interface ValueFactory<List<T>>