|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.cle.util.PropertyReader
Loads and reads a given property. This class hides the platform that the app is deployed on and will use the appropriate mechanism to load and read the property file
Constructor Summary | |
PropertyReader(java.lang.Class aClass,
java.lang.String aPropertyFilename)
Constructor to accept the a class and the property file name. If the app is deployed on Oracle 8i JServer, it will search the package that the class belongs to for the property file, otherwise the class is not used |
Method Summary | |
java.lang.String |
getPropertyFilename()
Returns the filename of the property file |
protected java.io.InputStream |
getPropertyFileStream()
Returns the InputStream for the property file |
java.lang.Class |
getRelativeClass()
Returns the Class that is set for the PropertyReader |
java.util.Properties |
loadProperties()
Returns the properties that are loaded from the property file |
void |
setPropertyFilename(java.lang.String aPropertyFilename)
Sets the filename for the property file |
void |
setRelativeClass(java.lang.Class aClass)
Sets the Class to indicate the package to look for the property file |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PropertyReader(java.lang.Class aClass, java.lang.String aPropertyFilename)
java.lang.Class
- java.lang.String
- Name of the property fileMethod Detail |
public java.util.Properties loadProperties()
public void setRelativeClass(java.lang.Class aClass)
java.lang.Class
- public java.lang.Class getRelativeClass()
public void setPropertyFilename(java.lang.String aPropertyFilename)
java.lang.String
- public java.lang.String getPropertyFilename()
protected java.io.InputStream getPropertyFileStream() throws CLERuntimeException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |