public class ConfigDirectiveContext extends Object implements DirectiveContext
ConfigDirectiveContext manages the context for directive
by either retrieving the configuration from a service or from a provided
instance of DirectiveConfig.| Constructor and Description |
|---|
ConfigDirectiveContext(DirectiveConfig config) |
ConfigDirectiveContext(URL url) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAlias(String directive)
Returns the root directive aliasee
|
boolean |
hasAlias(String directive)
Checks if the directive is aliased.
|
boolean |
isExcluded(String directive)
Checks if the directive is being excluded from being used.
|
public ConfigDirectiveContext(DirectiveConfig config)
public ConfigDirectiveContext(URL url) throws IOException
IOExceptionpublic boolean hasAlias(String directive)
hasAlias in interface DirectiveAliasdirective - to be checked for aliasing.public String getAlias(String directive)
getAlias in interface DirectiveAliasdirective - public boolean isExcluded(String directive)
isExcluded in interface DirectiveEnforcerdirective - to be checked for exclusion.Copyright © 2020 CDAP Licensed under the Apache License, Version 2.0.