Annotation Type RegistryType


  • @Deprecated
    @Qualifier
    @Documented
    @Retention(RUNTIME)
    @Target({METHOD,FIELD,PARAMETER,ANNOTATION_TYPE})
    public @interface RegistryType
    Deprecated.
    As of rlease 5.0, please use RegistryScope instead
    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:
    MetricRegistry.Type
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      MetricRegistry.Type type
      Deprecated.
      The scope of the MetricRegistry.
    • Element Detail

      • type

        MetricRegistry.Type type
        Deprecated.
        The scope of the MetricRegistry.
        Returns:
        Returns the scope of the MetricRegistry. The MetricRegistry.Type can be APPLICATION, BASE, or VENDOR.
        See Also:
        MetricRegistry.Type
        Default:
        org.eclipse.microprofile.metrics.MetricRegistry.Type.APPLICATION