@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 |
public abstract MetricRegistry.Type type