public class GeneratorConfig extends Object
| Constructor and Description |
|---|
GeneratorConfig(Properties properties,
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 GeneratorConfig(Properties properties, String name, ProcessorConfig config)
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 © 2019. All rights reserved.