public interface SharedRegistry extends ServiceLoader, ServiceRegistry
Modifier and Type | Method and Description |
---|---|
<T> void |
unregister(Class<T> service,
T implementation)
Unregisters a service implementation.
|
getService, getService, getService, getService
register
<T> void unregister(Class<T> service, T implementation)
The given instance is no more returned each time the service is requested by ServiceLoader.getService(Class)
.
T
- the service type.service
- the implemented service.implementation
- the service implementation.