T
- the data source type to be configuredpublic abstract class DataSourceConfiguration<T extends DataSource> extends Object
This class helps abstract out common functionality between data sources related to managing the configuration (load/save from DIIRT_HOME, create from the configuration).
All implementations must have a no-argument constructor, initialed to the default configuration.
Constructor and Description |
---|
DataSourceConfiguration() |
Modifier and Type | Method and Description |
---|---|
abstract T |
create()
Creates a new data source based on this configuration.
|
abstract DataSourceConfiguration<T> |
read(InputStream stream)
Reads the configuration from the given stream and returns
an object with the new configuration.
|
public abstract DataSourceConfiguration<T> read(InputStream stream)
NOTE: whether this object is modified and returned, or a new object is returned, is currently unspecified.
stream
- the configuration file to be readpublic abstract T create()
Copyright © 2015. All rights reserved.