Package org.moeaframework.analysis.store
Class DataStoreProvider
java.lang.Object
org.moeaframework.analysis.store.DataStoreProvider
- Direct Known Subclasses:
FileSystemDataStoreProvider
Defines a SPI for creating data stores. A data store is identified by a URI with a specific scheme.
Avoid including secrets in the URI itself. The provided URI may appear in logs, exception messages, or command line arguments, and is not a safe place to store secrets. Instead, if required, provide a reference to the secret, such as referencing an environment variable name.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract DataStore
getDataStore
(URI uri) Resolves the data store referenced by this URI.
-
Constructor Details
-
DataStoreProvider
public DataStoreProvider()Constructs a data store provider.
-
-
Method Details
-
getDataStore
Resolves the data store referenced by this URI.- Parameters:
uri
- the URI defining the data store- Returns:
- the data store, or
null
if not implemented by this provider
-