Class PropertyInitializer

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String keySuffix  
      private java.util.Properties properties  
    • Constructor Summary

      Constructors 
      Constructor Description
      PropertyInitializer​(java.lang.String propertyFileName)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private java.lang.String composeKey​(java.lang.String baseKey)  
      double getDoubleValue​(java.lang.String baseKey)
      Retrieve the double value for the key stored in the backing properties.
      int getIntValue​(java.lang.String baseKey)
      Retrieve the integer value for the key stored in the backing properties.
      java.lang.String getValue​(java.lang.String baseKey)
      Retrieve the String value for the key stored in the backing properties.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • properties

        private final java.util.Properties properties
      • keySuffix

        private java.lang.String keySuffix
    • Constructor Detail

      • PropertyInitializer

        public PropertyInitializer​(java.lang.String propertyFileName)
                            throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • getIntValue

        public int getIntValue​(java.lang.String baseKey)
        Description copied from interface: IPropertyInitializer
        Retrieve the integer value for the key stored in the backing properties. The key is constructed by baseKey.suffix, where suffix is defined at construction time.
        Specified by:
        getIntValue in interface IPropertyInitializer
        Parameters:
        baseKey - base part of the property key
        Returns:
        value as an integer.
      • getDoubleValue

        public double getDoubleValue​(java.lang.String baseKey)
        Description copied from interface: IPropertyInitializer
        Retrieve the double value for the key stored in the backing properties. The key is constructed by baseKey.suffix, where suffix is defined at construction time.
        Specified by:
        getDoubleValue in interface IPropertyInitializer
        Parameters:
        baseKey - base part of the property key
        Returns:
        value as an double.
      • getValue

        public java.lang.String getValue​(java.lang.String baseKey)
        Description copied from interface: IPropertyInitializer
        Retrieve the String value for the key stored in the backing properties. The key is constructed by baseKey.suffix, where suffix is defined at construction time.
        Specified by:
        getValue in interface IPropertyInitializer
        Parameters:
        baseKey - base part of the property key
        Returns:
        value as an String.
      • composeKey

        private java.lang.String composeKey​(java.lang.String baseKey)