public final class SpiHelper
extends java.lang.Object
Modifier and Type | Method | Description |
---|---|---|
static <T> T |
loadSpi(java.lang.Class<T> service) |
Loads the first service implementation or throw an exception if nothing found.
|
public static <T> T loadSpi(java.lang.Class<T> service)
T
- service typeservice
- the service class to loadjava.lang.IllegalStateException
- if none implementation foundCopyright © 2018 Oracle Corporation. All rights reserved.