public class EnricherConfig extends Object
| Constructor and Description |
|---|
EnricherConfig(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.
|
Map<String,String> |
getRawConfig()
Get the raw, untyped configuration or an empty map
|
public EnricherConfig(Properties projectProperties, String name, ProcessorConfig config)
public String get(Configs.Key key)
key - key to lookup.public Map<String,String> getRawConfig()
public 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 © 2017. All rights reserved.