public class DriverRepository extends Object implements DriverFactory
Constructor and Description |
---|
DriverRepository(Iterable<? extends ResourceMirror> resources)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
<T> DrainDriver<T> |
createDrain(ProcessScript<T> script)
Creates a new drain driver.
|
<T> SourceDriver<T> |
createSource(ProcessScript<T> script)
Creates a new source driver.
|
public DriverRepository(Iterable<? extends ResourceMirror> resources)
resources
- original resourcesIllegalArgumentException
- if any parameter is null
public <T> SourceDriver<T> createSource(ProcessScript<T> script) throws IOException
DriverFactory
createSource
in interface DriverFactory
T
- target data model typescript
- target processIOException
- if failed to create a driverpublic <T> DrainDriver<T> createDrain(ProcessScript<T> script) throws IOException
DriverFactory
createDrain
in interface DriverFactory
T
- target data model typescript
- target processIOException
- if failed to create a driverCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.