P
- type of the information providerS
- type of the provider servicepublic interface ProviderRegistry<P extends Provider,S extends ProviderService<P>>
Modifier and Type | Method and Description |
---|---|
Set<ProviderId> |
getProviders()
Returns a set of currently registered provider identities.
|
S |
register(P provider)
Registers the supplied provider with the core.
|
void |
unregister(P provider)
Unregisters the supplied provider.
|
S register(P provider)
provider
- provider to be registeredIllegalArgumentException
- if the provider is registered alreadyvoid unregister(P provider)
IllegalStateException
.
Unregistering a provider that has not been previously registered results in a no-op.
provider
- provider to be unregisteredSet<ProviderId> getProviders()