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