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