org.openejb.alt.config
Class ConfigUtils
java.lang.Object
org.openejb.alt.config.ConfigUtils
public class ConfigUtils
- extends Object
Utility methods for reading and writing config files
- Author:
- David Blevins
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
messages
public static Messages messages
logger
public static Logger logger
ConfigUtils
public ConfigUtils()
readConfig
public static Openejb readConfig()
throws OpenEJBException
- Throws:
OpenEJBException
readConfig
public static Openejb readConfig(String confFile)
throws OpenEJBException
- Throws:
OpenEJBException
_readConfig
public static Openejb _readConfig(String confFile)
throws OpenEJBException
- Throws:
OpenEJBException
writeConfig
public static void writeConfig(String confFile,
Openejb confObject)
throws OpenEJBException
- Throws:
OpenEJBException
searchForConfiguration
public static String searchForConfiguration()
throws OpenEJBException
- Search for the config file.
OPENJB_HOME/conf/openejb.conf
OPENJB_HOME/conf/default.openejb.conf
- Returns:
- String
- Throws:
OpenEJBException
searchForConfiguration
public static String searchForConfiguration(String path)
throws OpenEJBException
- Throws:
OpenEJBException
searchForConfiguration
public static String searchForConfiguration(String path,
Properties props)
throws OpenEJBException
- Throws:
OpenEJBException
createConfig
public static File createConfig(File config)
throws IOException
- Throws:
IOException
addDeploymentEntryToConfig
public static boolean addDeploymentEntryToConfig(String jarLocation,
Openejb config)
Copyright © 1999-2012 OpenEJB. All Rights Reserved.