Annotation Type RegistryScope


  • @Documented
    @Retention(RUNTIME)
    @Target({METHOD,FIELD,PARAMETER,ANNOTATION_TYPE})
    public @interface RegistryScope
    Specifies the scope of Metric Registry to inject.

    This can be used to obtain the respective scoped MetricRegistry:

     
          @Inject
          @RegistryScope(scope=MetricRegistry.APPLICATION_SCOPE)
          MetricRegistry appRegistry;
     
          @Inject
          @RegistryScope(scope="customScope")
          MetricRegistry customRegistry;
     
     
     
    see MetricRegistry.APPLICATION_SCOPE, MetricRegistry.BASE_SCOPE and MetricRegistry.VENDOR_SCOPE
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String scope
      The scope of the MetricRegistry.