Class LoggingConfigMap


  • public class LoggingConfigMap
    extends ConfigMap
    ConfigMap wrapper that issues a logging message for each item that is queried. Only the first query for each key is logged.
    Since:
    14 Sep 2013
    Author:
    Mark Taylor
    • Constructor Detail

      • LoggingConfigMap

        public LoggingConfigMap​(ConfigMap base,
                                java.util.logging.Level level)
        Constructor.
        Parameters:
        base - base configmap
        level - level at which logging messages will be issued
    • Method Detail

      • get

        public <T> T get​(ConfigKey<T> key)
        Description copied from class: ConfigMap
        Reads the value associated with a given key. If the key is not present in the map, the default value for that key is returned.
        Overrides:
        get in class ConfigMap
        Parameters:
        key - key
        Returns:
        value earlier written to map, or default value