Package org.jmxtrans.agent.properties
Interface PropertiesLoader
- All Known Implementing Classes:
NoPropertiesSourcePropertiesLoader,ResourcePropertiesLoader
public interface PropertiesLoader
- Author:
- Kristoffer Erlandsson
-
Method Summary
Modifier and Type Method Description java.lang.StringgetDescription()Properties loader description for better log messagesjava.util.Map<java.lang.String,java.lang.String>loadProperties()Loads properties.
-
Method Details
-
loadProperties
@Nonnull java.util.Map<java.lang.String,java.lang.String> loadProperties()Loads properties.- Returns:
- A map with property keys and values.
- Throws:
IoRuntimeException- if properties file to load.
-
getDescription
@CheckForNull java.lang.String getDescription()Properties loader description for better log messages
-