Interface NamedContributor<C>

Type Parameters:
C - the contributor type

public interface NamedContributor<C>
A single named health endpoint contributors (either HealthContributor or ReactiveHealthContributor).
Since:
2.0.0
Author:
Phillip Webb
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the contributor instance.
    Returns the name of the contributor.
    static <C> NamedContributor<C>
    of(String name, C contributor)
     
  • Method Details

    • getName

      String getName()
      Returns the name of the contributor.
      Returns:
      the contributor name
    • getContributor

      C getContributor()
      Returns the contributor instance.
      Returns:
      the contributor instance
    • of

      static <C> NamedContributor<C> of(String name, C contributor)