Class PropertiesHolder


  • public class PropertiesHolder
    extends java.lang.Object
    Holder for a default class. Class may be specified by name (String) or class (Class). Using the holder complicates the users job, but minimized # of API's.
    Author:
    Richard A. Sitze
    • Constructor Detail

      • PropertiesHolder

        public PropertiesHolder​(java.util.Properties properties)
      • PropertiesHolder

        public PropertiesHolder​(java.lang.String propertiesFileName)
    • Method Detail

      • getProperties

        public java.util.Properties getProperties​(SPInterface spi,
                                                  ClassLoaders loaders)
        Parameters:
        spi - Optional SPI (may be null). If provided, an attempt is made to load the property file as-per Class.getResource().
        loaders - Used only if properties need to be loaded.
        Returns:
        Properties. Load the properties if necessary.
      • getPropertiesFileName

        public java.lang.String getPropertiesFileName()