@FunctionalInterface public interface DataModelSinkProvider
DataModelSink
drivers.
Adding test data sources, clients can implement this
and put the class name in
META-INF/services/com.asakusafw.testdriver.core.DataModelSinkProvider
.
Modifier and Type | Method and Description |
---|---|
<T> DataModelSink |
create(DataModelDefinition<T> definition,
URI sink,
TestContext context)
Creates a
DataModelSink object corresponding to the specified URI. |
<T> DataModelSink create(DataModelDefinition<T> definition, URI sink, TestContext context) throws IOException
DataModelSink
object corresponding to the specified URI.
If this object does not support the URI
, or
the sink does not support for the specified URI
,
this method will return null
.
T
- type of data modeldefinition
- the data model definitionsink
- the target identifiercontext
- the current testing contextDataModelSink
,
or null
if the specified source is not valid for this objectIOException
- if failed to create a DataModelSink
from the URIIllegalArgumentException
- if some parameters were null
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.