public class SourceDataModelSourceFactory extends DataModelSourceFactory
DataModelSourceFactory
implementation for SourceDataModelSource
.Constructor and Description |
---|
SourceDataModelSourceFactory(Class<T> sourceType,
Provider<? extends Source<? extends T>> sourceProvider)
Creates a new instance.
|
SourceDataModelSourceFactory(Provider<? extends Source<?>> sourceProvider)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
<T> DataModelSource |
createSource(DataModelDefinition<T> definition,
TestContext context)
Creates a new source.
|
public SourceDataModelSourceFactory(Class<T> sourceType, Provider<? extends Source<? extends T>> sourceProvider)
T
- the source data model typesourceType
- the source object classsourceProvider
- the source providerpublic <T> DataModelSource createSource(DataModelDefinition<T> definition, TestContext context) throws IOException
DataModelSourceFactory
createSource
in class DataModelSourceFactory
T
- type of data modeldefinition
- the data model definitioncontext
- the current testing contextIOException
- if failed to create a sink objectCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.