Class 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
    • Method Detail

      • 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