com.univocity.api.entity.custom
Interface CustomDataStoreFactory<C extends DataStoreConfiguration>

Type Parameters:
C - the type of data store configurations this factory supports.

public interface CustomDataStoreFactory<C extends DataStoreConfiguration>

A custom data store factory implementation, responsible for creating new data store instances from a configuration object. Instances of this class are expected to be provided in EngineConfiguration.getCustomDataStoreFactories()

Author:
uniVocity Software Pty Ltd - dev@univocity.com

Method Summary
 Class<C> getConfigurationType()
          Informs uniVocity the configuration class this factory supports.
 CustomDataStore<?> newDataStore(C configuration)
          Creates a new custom data store implementation from a configuration object
 

Method Detail

newDataStore

CustomDataStore<?> newDataStore(C configuration)
Creates a new custom data store implementation from a configuration object

Parameters:
configuration - the data store configuration
Returns:
a data store configured with the given settings.

getConfigurationType

Class<C> getConfigurationType()
Informs uniVocity the configuration class this factory supports.

Note uniVocity will not accept objects of subclasses of this class.

Returns:
the class that extends DataStoreConfiguration to provide configuration information for data stores created by this factory.


Copyright © 2015 uniVocity Software Pty Ltd. All rights reserved.