use of org.apache.ranger.plugin.policyengine.RangerPluginContext in project ranger by apache.
the class RangerAbstractContextEnricher method getConfig.
public String getConfig(String configName, String defaultValue) {
RangerPluginContext pluginContext = this.pluginContext;
String ret = defaultValue;
Configuration config = pluginContext != null ? pluginContext.getConfig() : null;
if (config != null) {
ret = config.get(configName, defaultValue);
}
return ret;
}
Aggregations