public interface ServiceContext
Modifier and Type | Method and Description |
---|---|
<T> T |
getService(Class<T> serviceType)
Access a service singleton via its type.
|
<T> List<T> |
getServices(Class<T> serviceType)
Access a list current services, given its type.
|
int |
ordinal() |
int ordinal()
<T> T getService(Class<T> serviceType)
Priority
will be used.T
- the type of the service type.serviceType
- the service type.null
ConfigException
- if there are multiple service implementations with the maximum priority.<T> List<T> getServices(Class<T> serviceType)
T
- the type of the list element returned by this methodserviceType
- the service type.null
Copyright © 2014–2016 Apache Software Foundation. All rights reserved.