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 Set |
findProviderFactories(Class providerInterface)
Returns the list of
ProviderFactory objects which implement or
extend the given interface or class. |
protected Set |
findProviderFactories(Class providerInterface,
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 Set findProviderFactories(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 Set findProviderFactories(Class providerInterface, 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