public interface ServiceProvider
Modifier and Type | Method and Description |
---|---|
int |
getPriority()
This method allows to define a priority for a registered ServiceProvider instance.
|
default <T> T |
getService(Class<T> serviceType)
Access a single service, given its type.
|
<T> List<T> |
getServices(Class<T> serviceType)
Access a list of services, given its type.
|
int getPriority()
<T> List<T> getServices(Class<T> serviceType)
serviceType
- the service type.null
default <T> T getService(Class<T> serviceType)
serviceType
- the service type.null
, if no such service is available.Copyright © 2012–2016 JSR 354 - Expert Group. All rights reserved.