Interface JavaClassProviderLoadable<T>

    • Method Detail

      • isValidProviderClass

        boolean isValidProviderClass​(java.lang.Class clazz)
        Parameters:
        clazz - the class
        Returns:
        true if the class is a valid provider class for the service
      • createProviderInstance

        <X extends TT createProviderInstance​(java.lang.Class<X> clazz,
                                               java.lang.String name)
                                        throws PluginException,
                                               ProviderCreationException
        Type Parameters:
        X - subtype of T
        Parameters:
        clazz - the class
        name - the provider name
        Returns:
        Create provider instance from a class
        Throws:
        PluginException - if the plugin has an error
        ProviderCreationException - if creating the instance has an error