public class Settings extends Object
Settings class provides access to user-configurable settings.| Constructor and Description |
|---|
Settings(com.typesafe.config.Config config)
Creates agent settings.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEnabled(String featurePath)
Checks whether a feature is enabled in the effective configuration.
|
@Internal public Settings(com.typesafe.config.Config config)
public boolean isEnabled(String featurePath)
A feature is identified by a path expression relative to CONFIG_ROOT, such as
context-propagation.executor. The feature is enabled iff the config element at the
requested path has a child element enabled with a value of true, on, or
yes.
featurePath - the feature's path expression