C - the contributor typepublic interface ContributorRegistry<C> extends NamedContributors<C>
HealthContributor or
ReactiveHealthContributor).NamedContributors| Modifier and Type | Method and Description |
|---|---|
void |
registerContributor(String name,
C contributor)
Register a contributor with the given
name. |
C |
unregisterContributor(String name)
Unregister a previously registered contributor.
|
getContributor, streamforEach, iterator, spliteratorvoid registerContributor(String name, C contributor)
name.name - the name of the contributorcontributor - the contributor to registerIllegalStateException - if the contributor cannot be registered with the
given name.