public class DbConfigFinder extends java.lang.Object implements DbConfigProvider
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DBCONFIG_EXT |
| Constructor and Description |
|---|
DbConfigFinder() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears caching of DbConfig instances.
|
DbConfig |
loadDbConfig(java.lang.String configName,
java.lang.Class<?> ctx)
This default implementation loads the file with base file name
configName and extension .dbconfig
in the context of class ctx. |
public static final java.lang.String DBCONFIG_EXT
public DbConfig loadDbConfig(java.lang.String configName, java.lang.Class<?> ctx)
DbConfigProviderconfigName and extension .dbconfig
in the context of class ctx.
The following locations are searched in order:
- .//config
- ./
- .///config
- .//config
loadDbConfig in interface DbConfigProviderconfigName - The base name of the .dbconfig file.ctx - A class providing context, such as current moduleDbConfig reflecting the settings in the .dbconfig file, or null if the file was not
found.public void clear()
DbConfigProviderclear in interface DbConfigProviderCopyright © 2024. All rights reserved.