Package org.pentaho.di.laf
Class BasePropertyHandler
- java.lang.Object
-
- org.pentaho.di.laf.BasePropertyHandler
-
- All Implemented Interfaces:
LAFChangeListener<PropertyHandler>
public class BasePropertyHandler extends Object implements 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
Fields Modifier and Type Field Description protected PropertyHandlerhandler
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PropertyHandlergetHandler()static BasePropertyHandlergetInstance()protected static PropertyHandlergetInstanceHandler()static StringgetProperty(String key)return the value of a given key from the properties liststatic StringgetProperty(String key, String defValue)return the value of a given key from the properties list, returning the defValue string should the key not be foundvoidnotify(PropertyHandler changedObject)
-
-
-
Field Detail
-
handler
protected PropertyHandler handler
-
-
Method Detail
-
getInstance
public static BasePropertyHandler getInstance()
-
getHandler
protected PropertyHandler getHandler()
-
getInstanceHandler
protected static PropertyHandler getInstanceHandler()
-
getProperty
public static String getProperty(String key)
return the value of a given key from the properties list- Parameters:
key-- Returns:
- null if the key is not found
-
getProperty
public static 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- Parameters:
key-defValue-- Returns:
- a string representing either the value associated with the passed key or defValue should that key not be found
-
notify
public void notify(PropertyHandler changedObject)
- Specified by:
notifyin interfaceLAFChangeListener<PropertyHandler>
-
-