@ParametersAreNonnullByDefault public class MapDbBackendFactory extends AbstractBackendFactory<MapDbConfig>
BackendFactory
that creates MapDbBackend
instances.Constructor and Description |
---|
MapDbBackendFactory()
Constructs a new
MapDbBackendFactory . |
Modifier and Type | Method and Description |
---|---|
protected Backend |
createLocalBackend(Path directory,
MapDbConfig config)
Creates a new file-based
Backend . |
createBackend, createRemoteBackend, name, supportsTransient
createMapper, createMapper
public MapDbBackendFactory()
MapDbBackendFactory
.@Nonnull protected Backend createLocalBackend(Path directory, MapDbConfig config) throws Exception
AbstractBackendFactory
Backend
.
By default, this method throws an UnsupportedOperationException
.
createLocalBackend
in class AbstractBackendFactory<MapDbConfig>
directory
- the file path where to store the databaseconfig
- the configuration that defines the behaviour of the back-endException
- if an error occurs during the back-end initializationCopyright © 2013–2019 Atlanmod. All rights reserved.