oracle.cle.util
Class PropertyReader

java.lang.Object
  |
  +--oracle.cle.util.PropertyReader

public class PropertyReader
extends java.lang.Object

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

PropertyReader

public 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
Parameters:
java.lang.Class -  
java.lang.String - Name of the property file
Method Detail

loadProperties

public java.util.Properties loadProperties()
Returns the properties that are loaded from the property file
Returns:
java.util.Properties

setRelativeClass

public void setRelativeClass(java.lang.Class aClass)
Sets the Class to indicate the package to look for the property file
Parameters:
java.lang.Class -  

getRelativeClass

public java.lang.Class getRelativeClass()
Returns the Class that is set for the PropertyReader
Returns:
java.lang.Class

setPropertyFilename

public void setPropertyFilename(java.lang.String aPropertyFilename)
Sets the filename for the property file
Parameters:
java.lang.String -  

getPropertyFilename

public java.lang.String getPropertyFilename()
Returns the filename of the property file
Returns:
java.lang.String

getPropertyFileStream

protected java.io.InputStream getPropertyFileStream()
                                             throws CLERuntimeException
Returns the InputStream for the property file
Returns:
java.io.InputStream


Copyright © 2003 ORACLE Corp. All Rights Reserved.