public interface Services
Modifier and Type | Method and Description |
---|---|
default Services |
combine(Services other) |
static Services |
combine(Services a,
Services b) |
default <T extends AppService> |
getService(java.lang.Class<T> type)
Returns the service of the given type if available
|
boolean |
hasService(java.lang.Class<? extends AppService> type) |
boolean hasService(java.lang.Class<? extends AppService> type)
type
- service typedefault <T extends AppService> T getService(java.lang.Class<T> type)
T
- service tyetype
- type classjava.lang.IllegalStateException
- if the requested service type is not available