|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sqlproc.engine.SqlPropertiesLoader
public class SqlPropertiesLoader
The helper class for the properties file loading. The properties file can be located on the classpath, in the root directory or in the user's home directory.
| Field Summary | |
|---|---|
protected org.slf4j.Logger |
logger
The internal slf4j logger. |
private Properties |
properties
Properties from the properties file. |
| Constructor Summary | |
|---|---|
SqlPropertiesLoader(String fileName,
Class<?> loaderClass)
Reads the properties file and create's a new SqlPropertiesLoader instance. |
|
| Method Summary | |
|---|---|
String |
get(String name)
Returns the named property value from the properties file. |
Properties |
getProperties()
Returns all properties. |
String |
toString()
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 - Properties file name.loaderClass - Class used to detect the correct classloader.| Method Detail |
|---|
public String get(String name)
name - the name (=key in the properties 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 | |||||||||