Package org.pentaho.di.laf
Class BasePropertyHandler
java.lang.Object
org.pentaho.di.laf.BasePropertyHandler
- All Implemented Interfaces:
LAFChangeListener<PropertyHandler>
This is a static accessor for the dynamic property loader and should be used by all classes requiring access to
property files. The static accessor provides a notification from the LAFFactory when the concrete handler is changed
at runtime should the LAF be changed.
- Author:
- dhushon
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected PropertyHandler
static BasePropertyHandler
protected static PropertyHandler
static String
getProperty
(String key) return the value of a given key from the properties liststatic 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 foundvoid
notify
(PropertyHandler changedObject)
-
Field Details
-
handler
-
-
Method Details
-
getInstance
-
getHandler
-
getInstanceHandler
-
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
-
notify
- Specified by:
notify
in interfaceLAFChangeListener<PropertyHandler>
-