C - the contributor typepublic interface ContributorRegistry<C> extends NamedContributors<C>
HealthContributor or
ReactiveHealthContributor).NamedContributors| Modifier and Type | Method and Description |
|---|---|
void |
registerContributor(java.lang.String name,
C contributor)
Register a contributor with the given
name. |
C |
unregisterContributor(java.lang.String name)
Unregister a previously registered contributor.
|
getContributor, streamvoid registerContributor(java.lang.String name,
C contributor)
name.name - the name of the contributorcontributor - the contributor to registerjava.lang.IllegalStateException - if the contributor cannot be registered with the
given name.C unregisterContributor(java.lang.String name)
name - the name of the contributor to unregisternull if no indicator was found in
the registry for the given name.