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)
PropertyHandler
getProperty
in interface PropertyHandler
public boolean loadProps(String filename)
PropertyHandler
loadProps
in interface PropertyHandler
public String getProperty(String key, String defValue)
PropertyHandler
getProperty
in interface PropertyHandler
public boolean exists(String filename)
PropertyHandler
exists
in interface PropertyHandler
Copyright © 2018 Hitachi Vantara. All rights reserved.