public class SpiDifferenceSinkProvider extends Object implements DifferenceSinkProvider
DifferenceSinkProvider as services.| Constructor and Description |
|---|
SpiDifferenceSinkProvider(ClassLoader serviceClassLoader)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
<T> DifferenceSink |
create(DataModelDefinition<T> definition,
URI sink,
TestContext context)
Creates a
DifferenceSink object corresponding to the specified URI. |
public SpiDifferenceSinkProvider(ClassLoader serviceClassLoader)
serviceClassLoader - the class loader to load the registered servicesIllegalArgumentException - if some parameters were nullpublic <T> DifferenceSink create(DataModelDefinition<T> definition, URI sink, TestContext context) throws IOException
DifferenceSinkProviderDifferenceSink 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 DifferenceSinkProviderT - type of data modeldefinition - the data model definitionsink - the target identifiercontext - the current testing contextDifferenceSink,
or null if the specified source is not valid for this objectIOException - if failed to create a DifferenceSink from the URICopyright © 2011–2019 Asakusa Framework Team. All rights reserved.