Package org.pentaho.di.laf
Interface PropertyHandler
- All Superinterfaces:
Handler
- All Known Implementing Classes:
OverlayProperties,OverlayPropertyHandler
-
Method Summary
Modifier and TypeMethodDescriptionbooleancheck to see whether a property file exists within the classpath or filesystemgetProperty(String key) return the value of a given key from the properties listgetProperty(String key, String defValue) return the value of a given key from the properties list, returning the defValue string should the key not be foundbooleanload properties for the given properties file
-
Method Details
-
loadProps
load properties for the given properties file- Parameters:
filename-- Returns:
- true if load was successful
-
exists
check to see whether a property file exists within the classpath or filesystem- Parameters:
filename-- Returns:
- true if resource exists
-
getProperty
return the value of a given key from the properties list- Parameters:
key-- Returns:
- null if the key is not found
-
getProperty
return the value of a given key from the properties list, returning the defValue string should the key not be found- Parameters:
key-defValue-- Returns:
- a string representing either the value associated with the passed key or defValue should that key not be found
-