RegistryScope
instead@Deprecated
@Documented
@Retention(value=RUNTIME)
@Target(value={METHOD,FIELD,PARAMETER,ANNOTATION_TYPE})
public @interface RegistryType
This can be used to obtain the respective scoped MetricRegistry
:
@Inject
@RegistryType(type=MetricRegistry.Type.BASE)
MetricRegistry baseRegistry;
MetricRegistry.Type
Modifier and Type | Optional Element and Description |
---|---|
MetricRegistry.Type |
type
Deprecated.
The scope of the MetricRegistry.
|
public abstract MetricRegistry.Type type
MetricRegistry.Type
can be APPLICATION
,
BASE
, or VENDOR
.MetricRegistry.Type