Class BibernateConfiguration
java.lang.Object
io.github.blyznytsiaorg.bibernate.config.BibernateConfiguration
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 Summary
-
Constructor Summary
ConstructorDescriptionConstructs a new BibernateConfiguration instance with the default configuration file name.BibernateConfiguration
(String configFileName) Constructs a new BibernateConfiguration instance with the specified configuration file name. -
Method Summary
-
Field Details
-
DEFAULT_CONFIGURATION
- See Also:
-
configFileName
-
-
Constructor Details
-
BibernateConfiguration
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
Loads properties from a specified configFileName.- Returns:
- A map containing the properties loaded from the specified file.
-
getValue
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
-