Class NoPropertiesSourcePropertiesLoader

java.lang.Object
org.jmxtrans.agent.properties.NoPropertiesSourcePropertiesLoader
All Implemented Interfaces:
PropertiesLoader

public class NoPropertiesSourcePropertiesLoader
extends java.lang.Object
implements PropertiesLoader
Properties loader that always returns an empty properties map.
Author:
Kristoffer Erlandsson
  • Constructor Summary

    Constructors
    Constructor Description
    NoPropertiesSourcePropertiesLoader()  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getDescription()
    Properties loader description for better log messages
    java.util.Map<java.lang.String,​java.lang.String> loadProperties()
    Always returns an empty map.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • NoPropertiesSourcePropertiesLoader

      public NoPropertiesSourcePropertiesLoader()
  • Method Details

    • loadProperties

      public java.util.Map<java.lang.String,​java.lang.String> loadProperties()
      Always returns an empty map.
      Specified by:
      loadProperties in interface PropertiesLoader
      Returns:
      A map with property keys and values.
    • getDescription

      public java.lang.String getDescription()
      Description copied from interface: PropertiesLoader
      Properties loader description for better log messages
      Specified by:
      getDescription in interface PropertiesLoader