T
- type of target ExporterDescription
public interface ExporterRetriever<T extends ExporterDescription>
ExporterDescription
.
Attention:
Currently this interface is not stable.
Please inherit AbstractExporterRetriever
or BaseExporterRetriever
instead.
Adding ExporterDescription
test moderators, clients can implement this
and put the class name in
META-INF/services/com.asakusafw.testdriver.core.ExporterRetriever
.
Modifier and Type | Method and Description |
---|---|
<V> ModelOutput<V> |
createOutput(DataModelDefinition<V> definition,
T description,
TestContext context)
Creates a
ModelOutput to prepare what the exporter will use. |
<V> DataModelSource |
createSource(DataModelDefinition<V> definition,
T description,
TestContext context)
Creates a
DataModelSource to retrieve what the target exporter had created. |
Class<T> |
getDescriptionClass()
Returns the class of target
ExporterDescription . |
void |
truncate(T description,
TestContext context)
Truncates all resources which the exporter will use.
|
Class<T> getDescriptionClass()
ExporterDescription
.void truncate(T description, TestContext context) throws IOException
If target resources do not support truncate operations, this method has no effects.
description
- the descriptioncontext
- the current test contextIOException
- if failed to open the target<V> ModelOutput<V> createOutput(DataModelDefinition<V> definition, T description, TestContext context) throws IOException
ModelOutput
to prepare what the exporter will use.V
- type of modeldefinition
- the data model definitiondescription
- the descriptioncontext
- the current test contextModelOutput
IOException
- if failed to open the targetIllegalArgumentException
- if some parameters were null
<V> DataModelSource createSource(DataModelDefinition<V> definition, T description, TestContext context) throws IOException
DataModelSource
to retrieve what the target exporter had created.V
- type of modeldefinition
- the data model definitiondescription
- the descriptioncontext
- the current test contextDataModelSource
IOException
- if failed to open the targetIllegalArgumentException
- if some parameters were null
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.