Package org.oddjob.beanbus.destinations
Class BeanSheet
java.lang.Object
org.oddjob.beanbus.destinations.BeanSheet
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable,Runnable,Consumer<Object>,ArooaSessionAware,Outbound<Object>
public class BeanSheet
extends Object
implements Consumer<Object>, ArooaSessionAware, Outbound<Object>, Runnable, Flushable, Closeable
- Author:
- rob
Description
Create a simple database style report from a list of beans.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclose()voidflush()intgetName()getTo()booleanvoidrun()voidsetArooaSession(ArooaSession session) Accept the current Arooa Session.voidsetBeanViews(BeanViews beanViews) voidvoidsetNoHeaders(boolean noHeaders) voidsetOutput(OutputStream output) voidSet the out bound destination.toString()voidwriteBeans(Iterable<?> beans)
-
Constructor Details
-
BeanSheet
public BeanSheet()
-
-
Method Details
-
setArooaSession
Description copied from interface:ArooaSessionAwareAccept the current Arooa Session.- Specified by:
setArooaSessionin interfaceArooaSessionAware- Parameters:
session- The Arooa Session. Never null.
-
run
public void run() -
flush
- Specified by:
flushin interfaceFlushable- Throws:
IOException
-
accept
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
writeBeans
-
getBeanCount
public int getBeanCount() -
getOutput
-
setOutput
-
isNoHeaders
public boolean isNoHeaders() -
setNoHeaders
public void setNoHeaders(boolean noHeaders) -
getBeanViews
-
setBeanViews
-
getName
-
setName
-
toString
-
getTo
-
setTo
Description copied from interface:OutboundSet the out bound destination.
-