Class BibernateConfiguration

java.lang.Object
io.github.blyznytsiaorg.bibernate.config.BibernateConfiguration

public class BibernateConfiguration extends Object
Configuration class for loading properties from a configuration file. It provides methods to load properties from a specified file or from the default configuration file.
Since:
1.0
Author:
Blyzhnytsia Team
  • Field Details

  • Constructor Details

    • BibernateConfiguration

      public BibernateConfiguration(String configFileName)
      Constructs a new BibernateConfiguration instance with the specified configuration file name.
      Parameters:
      configFileName - the name of the configuration file to load properties from
    • BibernateConfiguration

      public BibernateConfiguration()
      Constructs a new BibernateConfiguration instance with the default configuration file name. The default configuration file is "bibernate.properties".
  • Method Details

    • load

      public Map<String,String> load()
      Loads properties from a specified configFileName.
      Returns:
      A map containing the properties loaded from the specified file.
    • getValue

      private Function<String,String> getValue(Properties properties)
      Returns a function to process properties and return their values.
      Parameters:
      properties - the properties object to process
      Returns:
      a function to process properties and return their values