Package org.pentaho.di.laf
Class OverlayPropertyHandler
- java.lang.Object
-
- org.pentaho.di.laf.OverlayPropertyHandler
-
- All Implemented Interfaces:
Handler
,PropertyHandler
public class OverlayPropertyHandler extends Object implements PropertyHandler
-
-
Constructor Summary
Constructors Constructor Description OverlayPropertyHandler()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
exists(String filename)
check to see whether a property file exists within the classpath or filesystemstatic PropertyHandler
getInstance()
static String
getLAFProp(String key)
String
getProperty(String key)
return the value of a given key from the properties listString
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 foundprotected boolean
loadAltProps()
boolean
loadProps(String filename)
load properties for the given properties file
-
-
-
Field Detail
-
propFile
protected static final String propFile
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static PropertyHandler getInstance()
-
loadAltProps
protected boolean loadAltProps()
-
getProperty
public String getProperty(String key)
Description copied from interface:PropertyHandler
return the value of a given key from the properties list- Specified by:
getProperty
in interfacePropertyHandler
- Returns:
- null if the key is not found
-
loadProps
public boolean loadProps(String filename)
Description copied from interface:PropertyHandler
load properties for the given properties file- Specified by:
loadProps
in interfacePropertyHandler
- Returns:
- true if load was successful
-
getProperty
public String getProperty(String key, String defValue)
Description copied from interface:PropertyHandler
return the value of a given key from the properties list, returning the defValue string should the key not be found- Specified by:
getProperty
in interfacePropertyHandler
- Returns:
- a string representing either the value associated with the passed key or defValue should that key not be found
-
exists
public boolean exists(String filename)
Description copied from interface:PropertyHandler
check to see whether a property file exists within the classpath or filesystem- Specified by:
exists
in interfacePropertyHandler
- Returns:
- true if resource exists
-
-