org.oddjob.beanbus
Class BeanTrap<T>

java.lang.Object
  extended by 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


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.oddjob.arooa.types.ValueFactory
ValueFactory.Conversions
 
Constructor Summary
BeanTrap()
           
 
Method Summary
 void accept(T bean)
           
 Iterator<T> iterator()
           
 void setBus(BeanBus driver)
           
 List<T> toValue()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanTrap

public BeanTrap()
Method Detail

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>>