| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the provider's priority (default is 0).This method allows to define a priority for a registered ServiceProvider instance. |
| public default <T> T | Returns: The instance, (with highest precedence) ornull, if no such service is available.the service type. serviceType)Access a single service, given its type. |
| public <T> List | Returns: The instance to be used, nevernullthe service type. serviceType)Access a list of services, given its type. |
| getPriority | back to summary |
|---|---|
| public int getPriority() This method allows to define a priority for a registered ServiceProvider instance. When multiple providers are registered in the system the provider with the highest priority value is taken.
| |
| getService | back to summary |
|---|---|
| public default <T> T getService(Class<T> serviceType) Access a single service, given its type. The bootstrap mechanism should order the instance for precedence, hereby the most significant should be first in order and returned. If no such services are found, null is returned.
| |
| getServices | back to summary |
|---|---|
| public <T> List Access a list of services, given its type. The bootstrap mechanism should order the instance for precedence, hereby the most significant should be first in order. If no such services are found, an empty list should be returned. | |