uk.ac.starlink.ttools.plot2.config
Class LoggingConfigMap
java.lang.Object
uk.ac.starlink.ttools.plot2.config.ConfigMap
uk.ac.starlink.ttools.plot2.config.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
Method Summary |
|
get(ConfigKey<T> key)
Reads the value associated with a given key. |
LoggingConfigMap
public LoggingConfigMap(ConfigMap base,
Level level)
- Constructor.
- Parameters:
base
- base configmaplevel
- level at which logging messages will be issued
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
Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.