Class SpiUtilities

java.lang.Object
dev.getelements.elements.sdk.spi.SpiUtilities

public class SpiUtilities extends Object
Some utility classes useful to SPI Implementations.
  • Method Details

    • getInstance

      public static SpiUtilities getInstance()
    • bind

      public <T> void bind(ClassLoader classLoader, Class<?> providerType, T instance, Class<? super T> interfaceT)
      Binds the supplied object to the provider type.
      Parameters:
      classLoader - the ClassLoader to use
      providerType - the SPI provider type which has a static setInstance method
      instance - the instance to set