public class ConfigurationLoader extends Object
Properties object
Note: warc.homepath must be set as System.property| Constructor and Description |
|---|
ConfigurationLoader() |
| Modifier and Type | Method and Description |
|---|---|
static Properties |
getPropertiesOfFile(String pFilename)
Loads the given properties file
|
static String |
getPropertyByKey(String key,
String pFilename)
Get a single property from baufi.properties
|
static String |
getPropertyByKey(String key,
String defaultValue,
String pFilename)
Get a single property from baufi.properties
|
static Object |
loadJAXB(Class<?> configClass,
String fileName)
Loads a XML-Configuration from the XML-File with JAXB.
|
public static Properties getPropertiesOfFile(String pFilename)
pFilename - Property Filepublic static Object loadJAXB(Class<?> configClass, String fileName) throws JAXBException, FileNotFoundException
configClass - class representing the root element of the XML-StructurefileName - - the XML-File config pathJAXBException - - if the XML is invalidFileNotFoundException - - if the XML file is not found or availablepublic static String getPropertyByKey(String key, String defaultValue, String pFilename)
key - the property keydefaultValue - the default valuepFilename - Property File in your warc.homepath/conf folderCopyright © 2018. All rights reserved.