public class EnricherConfiguration extends Object
| Constructor and Description |
|---|
EnricherConfiguration(String prefix,
Map<String,String> 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 String get(Configs.Key key)
key - key to lookup. If it implements also DefaultValueProvider then use this for a default valuepublic 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 © 2016. All rights reserved.