org.oddjob.beanbus.destinations
Class BeanSheet

java.lang.Object
  extended by org.oddjob.beanbus.AbstractDestination<Object>
      extended by org.oddjob.beanbus.destinations.BeanSheet
All Implemented Interfaces:
Iterable<Object>, Collection<Object>, ArooaSessionAware, Outbound<Object>

public class BeanSheet
extends AbstractDestination<Object>
implements ArooaSessionAware, Outbound<Object>

Description

Create a simple database style report from a list of beans.
Author:
rob

Constructor Summary
BeanSheet()
           
 
Method Summary
 boolean add(Object bean)
           
 int getBeanCount()
           
 BeanViews getBeanViews()
           
 String getName()
           
 OutputStream getOutput()
           
 Collection<? super Object> getTo()
           
 boolean isEmpty()
           
 boolean isNoHeaders()
           
 void setArooaSession(ArooaSession session)
           
 void setBeanViews(BeanViews beanViews)
           
 void setBusConductor(BusConductor busConductor)
           
 void setName(String name)
           
 void setNoHeaders(boolean noHeaders)
           
 void setOutput(OutputStream output)
           
 void setTo(Collection<? super Object> to)
          Set the out bound destination.
 String toString()
           
 void writeBeans(Iterable<?> beans)
           
 
Methods inherited from class org.oddjob.beanbus.AbstractDestination
addAll, clear, contains, containsAll, 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
equals, hashCode
 

Constructor Detail

BeanSheet

public BeanSheet()
Method Detail

setArooaSession

public void setArooaSession(ArooaSession session)
Specified by:
setArooaSession in interface ArooaSessionAware

add

public boolean add(Object bean)
Specified by:
add in interface Collection<Object>

writeBeans

public void writeBeans(Iterable<?> beans)

setBusConductor

@Inject
public void setBusConductor(BusConductor busConductor)

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Collection<Object>
Overrides:
isEmpty in class AbstractDestination<Object>

getBeanCount

public int getBeanCount()

getOutput

public OutputStream getOutput()

setOutput

public void setOutput(OutputStream output)

isNoHeaders

public boolean isNoHeaders()

setNoHeaders

public void setNoHeaders(boolean noHeaders)

getBeanViews

public BeanViews getBeanViews()

setBeanViews

public void setBeanViews(BeanViews beanViews)

getName

public String getName()

setName

public void setName(String name)

toString

public String toString()
Overrides:
toString in class Object

getTo

public Collection<? super Object> getTo()

setTo

public void setTo(Collection<? super Object> to)
Description copied from interface: Outbound
Set the out bound destination.

Specified by:
setTo in interface Outbound<Object>