ServiceProvider interface and hereby uses the JDK
ServiceLoader to load the services required.
| Modifier and Type | Field and Description |
|---|---|
| private final ConcurrentHashMap | servicesLoaded
List of services loaded, per class. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | getPriority()
Implements javax. |
| public < the concrete type. T> List | Returns: the items found, nevernull.The service type. serviceType)Implements javax. |
| private < the concrete type. T> List | Returns: the items found, nevernull.The service type. serviceType)Loads and registers services. |
| servicesLoaded | back to summary |
|---|---|
| private final ConcurrentHashMap<Class<?>, List<Object>> servicesLoaded List of services loaded, per class. | |
| DefaultServiceProvider | back to summary |
|---|---|
| pack-priv DefaultServiceProvider() | |
| getPriority | back to summary |
|---|---|
| public int getPriority() Implements javax. Doc from javax. 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.
| |
| getServices | back to summary |
|---|---|
| public <T> List Implements javax. Loads and registers services. | |
| loadServices | back to summary |
|---|---|
| private <T> List Loads and registers services. | |