T - The service typepublic interface ServiceDefinition<T>
| Modifier and Type | Method and Description | 
|---|---|
| java.lang.String | getName() | 
| boolean | isPresent() | 
| T | load() | 
| <X extends java.lang.Throwable> | orElseThrow(java.util.function.Supplier<? extends X> exceptionSupplier)Load the service of throw the given exception. | 
java.lang.String getName()
boolean isPresent()
<X extends java.lang.Throwable> T orElseThrow(java.util.function.Supplier<? extends X> exceptionSupplier) throws X extends java.lang.Throwable
X - The exception typeexceptionSupplier - The exception supplierX - The exception concrete typeX extends java.lang.ThrowableT load()