| |
|
| java.lang.Object com.finalist.util.PropertyReader
PropertyReader | public class PropertyReader (Code) | | Util class that will read properties from the WEB-INF/classes/directory
or by specifying a URL on the filesystem.
Also has a helper method for creating a platform independent URL.
author: Rudie Ekkelenkamp en Erik-Jan de Wit version: $Revision: 1.1 $, $Date: 2004/11/12 14:06:44 $ |
getProperties | public static Properties getProperties(String propertyFile)(Code) | | Retrieve the properties specified by the fileName
The property file should be in the WEB-INF/classess directory
Suppose you need to get the properties in the
web-inf/classes/config/application.properties ,
you need to pass the propertyFile: config/application.properties
Parameters: propertyFile - relative path to a properties file in the WEB-INF/classes directory a Properties object based on the input file |
getProperties | public static Properties getProperties(URL url)(Code) | | Retrieve the properties accesible through the specified URL
Parameters: url - a reference to a properties file a properties file |
getPropertiesURL | public static URL getPropertiesURL(String fileName)(Code) | | This method will return a platform independent URL to a file
in the web-inf/classes direcotry.
Parameters: fileName - relative path to a properties file in the WEB-INF/classes directory a platform independent URL to the xml file. |
|
|
|