public abstract class SPIProvider extends Object
Constructor and Description |
---|
SPIProvider() |
Modifier and Type | Method and Description |
---|---|
static SPIProvider |
getInstance()
Gets the a singleton reference to the SPIProvider returned by the SPIProviderResolver
retrieved using the default server integration classloader.
|
<T> T |
getSPI(Class<T> spiType)
Gets the specified SPI, using the current thread context classloader
|
abstract <T> T |
getSPI(Class<T> spiType,
ClassLoader loader)
Gets the specified SPI, using the provided classloader
|
public static SPIProvider getInstance()
public <T> T getSPI(Class<T> spiType)
T
- type of spi classspiType
- spi class to retrievepublic abstract <T> T getSPI(Class<T> spiType, ClassLoader loader)
T
- type of spi classspiType
- spi class to retrieveloader
- classloader to userCopyright © 2017 JBoss, by Red Hat. All rights reserved.