public class BlackLabConfig extends Object
Constructor and Description |
---|
BlackLabConfig() |
Modifier and Type | Method and Description |
---|---|
int |
getConfigVersion() |
BLConfigIndexing |
getIndexing() |
BLConfigLog |
getLog() |
BLConfigPlugins |
getPlugins() |
BLConfigSearch |
getSearch() |
static BlackLabConfig |
readConfigFile(File file)
Load the global blacklab configuration.
|
void |
setConfigVersion(int configVersion) |
void |
setIndexing(BLConfigIndexing indexing) |
void |
setLog(BLConfigLog log) |
void |
setPlugins(BLConfigPlugins plugins) |
void |
setSearch(BLConfigSearch search) |
public static BlackLabConfig readConfigFile(File file) throws FileNotFoundException, IOException
BlackLabIndexImpl
constructed hereafter.
If no explicit config file has been set by the time when the first BlackLabIndex
is opened, BlackLab automatically attempts to find and load a configuration
file in a number of preset locations (see
OldConfigReader#defaultConfigDirs()
).
Attempting to set another configuration when one is already loaded will throw
an UnsupportedOperationException.file
- FileNotFoundException
IOException
public int getConfigVersion()
public void setConfigVersion(int configVersion)
public BLConfigSearch getSearch()
public void setSearch(BLConfigSearch search)
public BLConfigIndexing getIndexing()
public void setIndexing(BLConfigIndexing indexing)
public BLConfigPlugins getPlugins()
public void setPlugins(BLConfigPlugins plugins)
public BLConfigLog getLog()
public void setLog(BLConfigLog log)
Copyright © 2020 Instituut voor Nederlandse Taal (INT). All rights reserved.