|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectco.uk.hjcs.canyon.provider.impl.ResourceFileProvider
public class ResourceFileProvider
The default resource provider. Sources config and input streams based on the resource name. If the stream cannot be found validation will fail and an exception will be thrown
| Constructor Summary | |
|---|---|
ResourceFileProvider(java.lang.String resourceName)
|
|
| Method Summary | |
|---|---|
java.io.InputStream |
getConfigStream(java.lang.String streamName,
java.util.Properties properties)
This interface provides the capability to load the mapping and configuration for Canyon to process. |
java.io.InputStream[] |
getInputStreams(java.util.Properties properties)
Returns an array of input streams to be consumed as input configuration or data |
void |
validate(java.util.Properties properties)
Is called to validate the input streams, so that Canyon can operate on them |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceFileProvider(java.lang.String resourceName)
| Method Detail |
|---|
public java.io.InputStream[] getInputStreams(java.util.Properties properties)
CanyonInputProvider
getInputStreams in interface CanyonInputProviderproperties - - the properties defined in the configuration
public void validate(java.util.Properties properties)
throws CanyonException
CanyonInputProvider
validate in interface CanyonInputProviderproperties - - the properties defined in the configuration
CanyonException
public java.io.InputStream getConfigStream(java.lang.String streamName,
java.util.Properties properties)
CanyonConfigProvider
getConfigStream in interface CanyonConfigProviderstreamName - - the name of the stream to loadproperties - - the properties associated with the configuration parameter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||