public class DefaultProviderRegistration extends AbstractProviderRegistration
ProviderRegistration
implementation which finds
ProviderFactory
objects automatically using the ServiceLoader
.Constructor and Description |
---|
DefaultProviderRegistration() |
DefaultProviderRegistration(ServiceLoader serviceLoader) |
Modifier and Type | Method and Description |
---|---|
protected java.util.Set |
findProviderFactories(java.lang.Class providerInterface)
Returns the list of
ProviderFactory objects which implement or
extend the given interface or class. |
protected java.util.Set |
findProviderFactories(java.lang.Class providerInterface,
java.lang.ClassLoader classLoader)
Returns the list of
ProviderFactory objects which implement or
extend the given interface or class. |
registerProviderFactories, registerProviderFactories
public DefaultProviderRegistration()
public DefaultProviderRegistration(ServiceLoader serviceLoader)
protected java.util.Set findProviderFactories(java.lang.Class providerInterface)
AbstractProviderRegistration
ProviderFactory
objects which implement or
extend the given interface or class.findProviderFactories
in class AbstractProviderRegistration
providerInterface
- of the returned ProviderFactory
objectsProviderFactory
objectsprotected java.util.Set findProviderFactories(java.lang.Class providerInterface, java.lang.ClassLoader classLoader)
AbstractProviderRegistration
ProviderFactory
objects which implement or
extend the given interface or class.findProviderFactories
in class AbstractProviderRegistration
providerInterface
- of the returned ProviderFactory
objectsclassLoader
- to use to load or find the ProviderFactory
objectsProviderFactory
objects