@Qualifier @Retention(value=RUNTIME) @Target(value={METHOD,FIELD,PARAMETER}) @Documented public @interface Configurable
@Configurable
@ConfigurationProperty(ConfigurationKey.BACKEND)
@Inject
String backendType;
Configuration is a set of key/value pairs (configuration properties) defined by the following sources, in order of
precedence:
Properties file, which path is defined by the metrics.conf system
property; by default, <user.home>/.metrics.conf is usedProperties file (META-INF/metrics.conf)Configurable must also be annotated with ConfigurationProperty.
The value of the latter specifies the configuration property key. Otherwise the configuration producer method will
throw an instance of IllegalArgumentException. In most cases, a configuration property should at
least be defined in the internal properties file, in order to provide a default value.Instance. The configuration
value will be fetched on each call to Provider.get().ConfigurationProperty,
ConfigurableProducerCopyright © 2014–2016 Red Hat, Inc.. All rights reserved.