public interface ConfigService
Modifier and Type | Method and Description |
---|---|
BooleanProperty |
getBooleanProperty(String name)
Returns the
boolean plugin property value with the specified name . |
DoubleProperty |
getDoubleProperty(String name)
Returns the
Double plugin property value with the specified name . |
StringProperty |
getStringProperty(String name)
Returns the
String plugin property value with the specified name . |
void |
registerConfigListener(ConfigListener listener)
Registers a listener that will receive a callback when the plugin's property values are
changed, the plugin is enabled/disabled.
|
BooleanProperty getBooleanProperty(String name)
boolean
plugin property value with the specified name
. If there
is no boolean
plugin property with the specified name
then false
is
returned.
Plugin properties are scoped per plugin. The are defined in the plugin's
META-INF/glowroot.plugin.json file, and can be modified (assuming they are not marked as
hidden) on the configuration page under the plugin's configuration section.DoubleProperty getDoubleProperty(String name)
Double
plugin property value with the specified name
. If there is
no Double
plugin property with the specified name
then null
is
returned.
Plugin properties are scoped per plugin. The are defined in the plugin's
META-INF/glowroot.plugin.json file, and can be modified (assuming they are not marked as
hidden) on the configuration page under the plugin's configuration section.StringProperty getStringProperty(String name)
String
plugin property value with the specified name
.
null
is never returned. If there is no String
plugin property with the
specified name
then the empty string ""
is returned.
Plugin properties are scoped per plugin. The are defined in the plugin's
META-INF/glowroot.plugin.json file, and can be modified (assuming they are not marked as
hidden) on the configuration page under the plugin's configuration section.void registerConfigListener(ConfigListener listener)
getStringProperty(String)
, getBooleanProperty(String)
, and
getDoubleProperty(String)
as volatile
fields, and updating the cached values
anytime ConfigListener.onChange()
is called.Copyright © 2011–2017 Glowroot contributors. All rights reserved.