接口 ContributorRegistry<C>

类型参数:
C - the contributor type
所有超级接口:
Iterable<NamedContributor<C>>, NamedContributors<C>
所有已知子接口:
HealthContributorRegistry, ReactiveHealthContributorRegistry
所有已知实现类:
DefaultHealthContributorRegistry, DefaultReactiveHealthContributorRegistry

public interface ContributorRegistry<C> extends NamedContributors<C>
A mutable registry of health endpoint contributors (either HealthContributor or ReactiveHealthContributor).
从以下版本开始:
2.2.0
作者:
Phillip Webb, Andy Wilkinson, Vedran Pavic, Stephane Nicoll
另请参阅:
  • 方法详细资料

    • registerContributor

      void registerContributor(String name, C contributor)
      Register a contributor with the given name.
      参数:
      name - the name of the contributor
      contributor - the contributor to register
      抛出:
      IllegalStateException - if the contributor cannot be registered with the given name.
    • unregisterContributor

      C unregisterContributor(String name)
      Unregister a previously registered contributor.
      参数:
      name - the name of the contributor to unregister
      返回:
      the unregistered indicator, or null if no indicator was found in the registry for the given name.