org.oddjob.beanbus
Class FilterSection<F,T>

java.lang.Object
  extended by org.oddjob.beanbus.FilterSection<F,T>
All Implemented Interfaces:
BusAware, Destination<F>, Section<F,T>

public class FilterSection<F,T>
extends Object
implements Section<F,T>, BusAware


Constructor Summary
FilterSection()
           
 
Method Summary
 void accept(F bean)
           
 Filter<? super F,? extends T> getFilter()
           
 Destination<? super T> getTo()
           
 void setBus(BeanBus driver)
           
 void setFilter(Filter<? super F,? extends T> filter)
           
 void setTo(Destination<? super T> receiver)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterSection

public FilterSection()
Method Detail

accept

public void accept(F bean)
            throws BadBeanException,
                   CrashBusException
Specified by:
accept in interface Destination<F>
Throws:
BadBeanException
CrashBusException

getFilter

public Filter<? super F,? extends T> getFilter()

setFilter

public void setFilter(Filter<? super F,? extends T> filter)

getTo

public Destination<? super T> getTo()

setTo

public void setTo(Destination<? super T> receiver)
Specified by:
setTo in interface Section<F,T>

setBus

public void setBus(BeanBus driver)
Specified by:
setBus in interface BusAware