T- the data source type to be configured
public 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|
|Modifier and Type||Method and Description|
Creates a new data source based on this configuration.
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 read
public abstract T create()
Copyright © 2015. All rights reserved.