public class SpiDataModelSinkProvider extends Object implements DataModelSinkProvider
DataModelSinkProvider
as services
.Constructor and Description |
---|
SpiDataModelSinkProvider(ClassLoader serviceClassLoader)
Creates a new instance.
|
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. |
public SpiDataModelSinkProvider(ClassLoader serviceClassLoader)
serviceClassLoader
- the class loader to load the registered servicesIllegalArgumentException
- if some parameters were null
public <T> DataModelSink create(DataModelDefinition<T> definition, URI sink, TestContext context) throws IOException
DataModelSinkProvider
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
.
create
in interface DataModelSinkProvider
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 URICopyright © 2011–2019 Asakusa Framework Team. All rights reserved.