co.uk.hjcs.canyon.provider
Interface CanyonOutputProvider

All Known Implementing Classes:
DefaultFileProvider, PropertyFileProvider

public interface CanyonOutputProvider

This class represents the output that Canyon uses to persist objects to. Out of the box Canyon provides three options File, Property and Provider. To use simply use the correct attribute in the output element of the canyon.cfg.xml file. For file

 <output file="<absolute path to the file>"/>
 
For property
 <output property="<property name>"/>
 
The value of the property should be the absolute path to the input file For custom provider
        <output provider="<full class name>"/>
 

Author:
HJC Solutions Ltd (http://canyon.hjcsolutions.co.uk)

Method Summary
 java.io.OutputStream[] getOutputStreams(java.util.Properties properties)
          Returns an array of output streams to be used for output data
 void validate(java.util.Properties properties)
          Is called to validate the files, so that Canyon can operate on them
 

Method Detail

getOutputStreams

java.io.OutputStream[] getOutputStreams(java.util.Properties properties)
Returns an array of output streams to be used for output data

Parameters:
properties - - the properties defined in the configuration
Returns:
- the Outputstream to persist object to

validate

void validate(java.util.Properties properties)
              throws CanyonException
Is called to validate the files, so that Canyon can operate on them

Parameters:
properties - - the properties defined in the configuration
Throws:
CanyonException