public class EnricherConfiguration extends Object
| Constructor and Description |
|---|
EnricherConfiguration(String prefix,
Map<String,String> config) |
| Modifier and Type | Method and Description |
|---|---|
String |
get(String key) |
String |
get(String key,
String defaultVal)
Get a config value with a default
|
boolean |
getAsBoolean(String key) |
boolean |
getAsBoolean(String key,
boolean defaultVal) |
int |
getAsInt(String key) |
int |
getAsInt(String key,
int defaultVal) |
public String get(String key, String defaultVal)
key - key part to lookup. The whole key is build up from prefix + "." + key. If key is empty or 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 setpublic int getAsInt(String key)
public int getAsInt(String key, int defaultVal)
public boolean getAsBoolean(String key)
public boolean getAsBoolean(String key, boolean defaultVal)
Copyright © 2016. All rights reserved.