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