Package me.nickhanson.codeforge.config
Interface PropertiesLoader
- All Known Implementing Classes:
Auth,LocalConfig,LogIn,LogOut,QuoteService,StartupServlet
public interface PropertiesLoader
This interface contains a default method that can be used anywhere a Properties
object is needed to be loaded.
- Author:
- Eric Knapp
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault PropertiesloadProperties(String propertiesFilePath) This default method will load a properties file into a Properties instance and return it.
-
Field Details
-
logger
static final org.apache.logging.log4j.Logger logger
-
-
Method Details
-
loadProperties
This default method will load a properties file into a Properties instance and return it.- Parameters:
propertiesFilePath- a path to a file on the java classpath list- Returns:
- a populated Properties instance or an empty Properties instance if the file path was not found.
-