public class WatcherConfig extends Object
Constructor and Description |
---|
WatcherConfig(Properties projectProperties,
String name,
ProcessorConfig config) |
Modifier and Type | Method and Description |
---|---|
String |
get(Configs.Key key)
Get a configuration value
|
String |
get(Configs.Key key,
String defaultVal)
Get a config value with a default.
|
public WatcherConfig(Properties projectProperties, String name, ProcessorConfig config)
public String get(Configs.Key key)
key
- key to lookuppublic String get(Configs.Key key, String defaultVal)
key
- key part to lookup. The whole key is build up from prefix + "." + key
. If key is null,
then only the prefix is used for the lookup (this is suitable for enrichers having only one config option)defaultVal
- the default value to use when the no config is setCopyright © 2020. All rights reserved.