|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sqlproc.engine.SqlPropertiesLoader
@Deprecated public class SqlPropertiesLoader
The helper class for the property file loading. The property file can be located on the classpath, in the root
directory or in the user's home directory. It's used for the purpose of the SqlEngineLoader instance
creation.
For more info please see the Tutorials.
| Field Summary | |
|---|---|
protected org.slf4j.Logger |
logger
Deprecated. The internal slf4j logger. |
private Properties |
properties
Deprecated. Properties from the property file. |
| Constructor Summary | |
|---|---|
SqlPropertiesLoader(List<String> fileNames,
Class<?> loaderClass)
Deprecated. Reads the property files and creates a new SqlPropertiesLoader instance. |
|
SqlPropertiesLoader(String fileName,
Class<?> loaderClass)
Deprecated. Reads the property file and creates a new SqlPropertiesLoader instance. |
|
| Method Summary | |
|---|---|
String |
get(String name)
Deprecated. Returns the named property value from the property file. |
Properties |
getProperties()
Deprecated. Returns all properties. |
static Properties |
getProperties(Class<?> loaderClass,
String... fileNames)
Deprecated. Reads the property files and creates a new SqlPropertiesLoader instance. |
static Properties |
getProperties(Class<?> loaderClass,
String fileName)
Deprecated. Reads the property file and creates a new SqlPropertiesLoader instance. |
private Properties |
load(String fileName,
Class<?> loaderClass)
Deprecated. Reads the property file and creates a new Properties instance. |
String |
toString()
Deprecated. Returns a string representation of the object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final org.slf4j.Logger logger
private Properties properties
| Constructor Detail |
|---|
public SqlPropertiesLoader(String fileName,
Class<?> loaderClass)
fileName - The name of the file to be read.loaderClass - Class used to detect the correct classloader.
public SqlPropertiesLoader(List<String> fileNames,
Class<?> loaderClass)
fileNames - The names of the files to be read.loaderClass - Class used to detect the correct classloader.| Method Detail |
|---|
public static Properties getProperties(Class<?> loaderClass,
String fileName)
fileName - The name of the file to be read.loaderClass - Class used to detect the correct classloader.
public static Properties getProperties(Class<?> loaderClass,
String... fileNames)
fileNames - The names of the files to be read.loaderClass - Class used to detect the correct classloader.
private Properties load(String fileName,
Class<?> loaderClass)
fileName - The name of the file to be read.loaderClass - Class used to detect the correct classloader.
public String get(String name)
name - the name (=key in the property file)
public Properties getProperties()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||