|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.rhi.architecture.parc.adapter.AbstractOutputAdapter
com.rhi.architecture.parc.adapter.xml.XMLOutputAdapter
XML Output Adapter. Uses Castor to perform mapping from java objects to XML.
Field Summary |
Fields inherited from interface com.rhi.architecture.parc.OutputAdapter |
DEFAULT_THREAD_MODE, RUN_AS_THREAD, RUN_AS_THREAD_KEY |
Constructor Summary | |
XMLOutputAdapter()
|
Method Summary | |
void |
cleanup()
cleanup any resources. |
java.lang.String |
getErrorFilename()
Get filename for errored records. |
java.lang.String |
getValidFilename()
Get filename for valid records. |
protected void |
handleErrorRecords(java.util.Collection c,
Transaction t)
Stream errored records to file in XML format. |
java.util.Collection |
handleValidRecords(java.util.Collection c,
Transaction t)
Handle persistence of valid records from the framework. |
void |
init(java.util.Properties props)
Initialize the Castor data binding facilities so that the doWrite() method is ready to go. |
void |
transform(java.lang.String filename)
Placeholder to support XSLT transformations on the XML output as part of the interface. |
Methods inherited from class com.rhi.architecture.parc.adapter.AbstractOutputAdapter |
close, completeBatch, createTransaction, flush, getAuditAgent, log, markComplete, run, setAuditAgent, setErrorChannel, setExceptionHandler, setValidChannel, write, writeErrorRecords, writeValidRecords |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XMLOutputAdapter()
Method Detail |
public void init(java.util.Properties props) throws InitializationException
init
in interface OutputAdapter
init
in class AbstractOutputAdapter
props
-
InitializationException
public java.lang.String getValidFilename()
public java.lang.String getErrorFilename()
public void cleanup()
cleanup
in interface OutputAdapter
cleanup
in class AbstractOutputAdapter
public java.util.Collection handleValidRecords(java.util.Collection c, Transaction t) throws ProcessingException
handleValidRecords
in class AbstractOutputAdapter
c
- - valid records.t
- - the transaction to use persisting records.
ProcessingException
public void transform(java.lang.String filename)
filename
- protected void handleErrorRecords(java.util.Collection c, Transaction t) throws ProcessingException
handleErrorRecords
in class AbstractOutputAdapter
c
- t
-
ProcessingException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |