org.objectweb.telosys.common
Class TelosysProperties
java.lang.Object
org.objectweb.telosys.common.TelosysProperties
- public class TelosysProperties
- extends java.lang.Object
Constructor Summary |
protected |
TelosysProperties(java.util.Properties prop,
java.lang.String file,
int origin)
|
Method Summary |
java.lang.String |
getConfigFile(java.lang.String sPropertyName)
Returns the config file name associated with the given property name
NB : if the value starts with " |
java.lang.String |
getFile()
|
java.util.Date |
getInitDate()
|
int |
getOrigin()
|
java.util.Properties |
getProperties()
|
java.lang.String |
getProperty(java.lang.String sPropertyName)
Returns the value of the given property name |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
UNKNOWN
public static final int UNKNOWN
- See Also:
- Constant Field Values
FILESYSTEM
public static final int FILESYSTEM
- See Also:
- Constant Field Values
WEBAPP
public static final int WEBAPP
- See Also:
- Constant Field Values
CLASSPATH
public static final int CLASSPATH
- See Also:
- Constant Field Values
TelosysProperties
protected TelosysProperties(java.util.Properties prop,
java.lang.String file,
int origin)
- Parameters:
prop
- file
- origin
-
getOrigin
public int getOrigin()
getProperties
public java.util.Properties getProperties()
getFile
public java.lang.String getFile()
getInitDate
public java.util.Date getInitDate()
getProperty
public java.lang.String getProperty(java.lang.String sPropertyName)
- Returns the value of the given property name
- Parameters:
sPropertyName
-
- Returns:
- the property value or null
getConfigFile
public java.lang.String getConfigFile(java.lang.String sPropertyName)
- Returns the config file name associated with the given property name
NB : if the value starts with ".", the "." is replaced by the "telosys.properties" location
e.g. : "./myfile" --> "location/myfile"
- Parameters:
sPropertyName
- : e.g. "ScreensConfFile", "DbConfFile", ... ( see telosys.properties )
- Returns:
- the value
toString
public java.lang.String toString()