com.hyper9.simdk.ws.util
Class ConfigFileUtil

java.lang.Object
  extended by com.hyper9.simdk.ws.util.ConfigFileUtil

public final class ConfigFileUtil
extends Object

This class is used to help locate configuration files for this web application.

Author:
akutz

Constructor Summary
ConfigFileUtil()
           
 
Method Summary
static File getFile(String fileName)
           Gets a configuration file by looking for the file name in the following places in the following order:
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigFileUtil

public ConfigFileUtil()
Method Detail

getFile

public static File getFile(String fileName)

Gets a configuration file by looking for the file name in the following places in the following order:

  1. $COM.HYPER9.SIMDK.CONFIGDIRROOT
  2. /etc/simdk
  3. ./conf

Parameters:
fileName - The name of the file.
Returns:
The file if found; otherwise null.


Copyright © 2009-2010 Hyper9. All Rights Reserved.