Package org.jboss.wsf.spi
Class SPIProvider
- java.lang.Object
-
- org.jboss.wsf.spi.SPIProvider
-
public abstract class SPIProvider extends Object
Gives access to the SPI implementation.- Author:
- Heiko.Braun@jboss.com Created: Jul 18, 2007
-
-
Constructor Summary
Constructors Constructor Description SPIProvider()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static SPIProvidergetInstance()Gets the a singleton reference to the SPIProvider returned by the SPIProviderResolver retrieved using the default server integration classloader.<T> TgetSPI(Class<T> spiType)Gets the specified SPI, using the current thread context classloaderabstract <T> TgetSPI(Class<T> spiType, ClassLoader loader)Gets the specified SPI, using the provided classloader
-
-
-
Method Detail
-
getInstance
public static SPIProvider getInstance()
Gets the a singleton reference to the SPIProvider returned by the SPIProviderResolver retrieved using the default server integration classloader.- Returns:
- this class instance
-
getSPI
public <T> T getSPI(Class<T> spiType)
Gets the specified SPI, using the current thread context classloader- Type Parameters:
T- type of spi class- Parameters:
spiType- spi class to retrieve- Returns:
- object
-
getSPI
public abstract <T> T getSPI(Class<T> spiType, ClassLoader loader)
Gets the specified SPI, using the provided classloader- Type Parameters:
T- type of spi class- Parameters:
spiType- spi class to retrieveloader- classloader to user- Returns:
- object
-
-