/** * Construct object representing Class {@code provider}. * * @param <T> The SPI type * @param provider The SPI class * @return A new object representing Class {@code provider} * @since 0.5 */ public static <T> SPInterface<T> newSPInterface(Class<T> provider) { return newSPInterface(provider, provider.getName()); }
/** * Construct object representing Class {@code provider}. * * @param <T> The SPI type * @param provider The SPI class * @param constructorParamClasses classes representing the * constructor argument types * @param constructorParams objects representing the * constructor arguments * @return A new object representing Class {@code provider} * @since 0.5 */ public static <T> SPInterface<T> newSPInterface(Class<T> provider, Class<?> constructorParamClasses[], Object constructorParams[]) { return newSPInterface(provider, provider.getName(), constructorParamClasses, constructorParams); }