Annotation Interface RegistryType
@Qualifier
@Documented
@Retention(RUNTIME)
@Target({METHOD,FIELD,PARAMETER,ANNOTATION_TYPE})
public @interface RegistryType
Qualifies the type of Metric Registry to inject.
This can be used to obtain the respective scoped MetricRegistry
:
@Inject
@RegistryType(type=MetricRegistry.Type.BASE)
MetricRegistry baseRegistry;
- See Also:
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionThe scope of the MetricRegistry.
-
Element Details
-
type
MetricRegistry.Type typeThe scope of the MetricRegistry.- Returns:
- Returns the scope of the MetricRegistry. The
MetricRegistry.Type
can beAPPLICATION
,BASE
, orVENDOR
. - See Also:
- Default:
- APPLICATION
-