public class OverlayPropertyHandler extends Object implements PropertyHandler
| Constructor and Description |
|---|
OverlayPropertyHandler() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
exists(String filename)
check to see whether a property file exists within the classpath or filesystem
|
static PropertyHandler |
getInstance() |
static String |
getLAFProp(String key) |
String |
getProperty(String key)
return the value of a given key from the properties list
|
String |
getProperty(String key,
String defValue)
return the value of a given key from the properties list, returning the defValue string should the key not be found
|
protected boolean |
loadAltProps() |
boolean |
loadProps(String filename)
load properties for the given properties file
|
protected static final String propFile
public static PropertyHandler getInstance()
protected boolean loadAltProps()
public String getProperty(String key)
PropertyHandlergetProperty in interface PropertyHandlerpublic boolean loadProps(String filename)
PropertyHandlerloadProps in interface PropertyHandlerpublic String getProperty(String key, String defValue)
PropertyHandlergetProperty in interface PropertyHandlerpublic boolean exists(String filename)
PropertyHandlerexists in interface PropertyHandlerCopyright © 2020 Hitachi Vantara. All rights reserved.