protected String getConfig(Configs.Key key, String defaultVal) { return config.get(key, defaultVal); }
public BaseGenerator(GeneratorContext context, String name, FromSelector fromSelector) { this.context = context; this.name = name; this.fromSelector = fromSelector; this.config = new GeneratorConfig(context.getProject().getProperties(), getName(), context.getConfig()); this.log = new PrefixedLogger(name, context.getLogger()); }
protected String getConfig(Configs.Key key) { return config.get(key); }
/** * Get a configuration value * * @param key key to lookup. If it implements also {@link DefaultValueProvider} then use this for a default value * @return the defa */ public String get(Configs.Key key) { return get(key, key.def()); }