Package com.vaadin.extension.conf
Class Configuration
java.lang.Object
com.vaadin.extension.conf.Configuration
Provides the effective configuration for the Vaadin observability extension.
Initialized by
ConfigurationDefaults from the agent classloader
during auto-configuration, before any instrumentation is applied.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetProperty(String key) Looks up a configuration property by key.static booleanisEnabled(TraceLevel traceLevel) Checks whether a trace level is enabled.
-
Constructor Details
-
Configuration
public Configuration()
-
-
Method Details
-
isEnabled
Checks whether a trace level is enabled. Can be used by instrumentations to check whether some detail should be added to a trace or not.- Parameters:
traceLevel- the trace level to check- Returns:
- true if the trace level is enabled, false if not
-
getProperty
Looks up a configuration property by key.- Parameters:
key- the property key- Returns:
- the property value, or null if not set
-