Class ConfigurationUtil
- java.lang.Object
-
- nl.gx.webmanager.services.framework.spi.ConfigurationUtil
-
public final class ConfigurationUtil extends Object
ConfigUtil provides helper methods for loading and parsing framework configuration files. TODO: configuration should be defined by an xsd- Author:
- bramk
-
-
Constructor Summary
Constructors Constructor Description ConfigurationUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
createDirectory(String path)
static Document
getConfigDocumentResource(String resource)
static String
getConfiguredDirectory(String path)
static String
getTextContents(Node node)
static boolean
removeDirectory(String path)
static String
testIsDirectory(String path)
-
-
-
Method Detail
-
getConfigDocumentResource
public static Document getConfigDocumentResource(String resource) throws Exception, SAXException, IOException, ParserConfigurationException
- Returns:
- Throws:
Exception
SAXException
IOException
ParserConfigurationException
-
createDirectory
public static boolean createDirectory(String path)
- Parameters:
args
-
-
removeDirectory
public static boolean removeDirectory(String path)
- Parameters:
args
-
-
-