org.oddjob.beanbus.destinations
Class ValveFilter<T>

java.lang.Object
  extended by org.oddjob.beanbus.AbstractDestination<F>
      extended by org.oddjob.beanbus.AbstractFilter<T,T>
          extended by org.oddjob.beanbus.destinations.ValveFilter<T>
Type Parameters:
T -
All Implemented Interfaces:
Iterable<T>, Collection<T>, BusFilter<T,T>, Outbound<T>

public class ValveFilter<T>
extends AbstractFilter<T,T>

Description

Allows the flow of beans to be turned on and off.
Author:
rob

Constructor Summary
ValveFilter()
           
 
Method Summary
protected  T filter(T from)
           
 boolean isOpen()
           
 void setOpen(boolean open)
           
 
Methods inherited from class org.oddjob.beanbus.AbstractFilter
add, getName, getTo, setName, setTo, toString
 
Methods inherited from class org.oddjob.beanbus.AbstractDestination
addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Collection
addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 

Constructor Detail

ValveFilter

public ValveFilter()
Method Detail

filter

protected T filter(T from)
Specified by:
filter in class AbstractFilter<T,T>

isOpen

public boolean isOpen()

setOpen

public void setOpen(boolean open)