public abstract class AbstractProviderRegistration extends Object implements ProviderRegistration
ProviderRegistration
implementation which delegates on child
classed the search of ProviderFactory
objects.Constructor and Description |
---|
AbstractProviderRegistration() |
Modifier and Type | Method and Description |
---|---|
protected abstract Set |
findProviderFactories(Class providerInterface)
Returns the list of
ProviderFactory objects which implement or
extend the given interface or class. |
protected abstract Set |
findProviderFactories(Class providerInterface,
ClassLoader classLoader)
Returns the list of
ProviderFactory objects which implement or
extend the given interface or class. |
void |
registerProviderFactories(ProviderManager providerManager,
Class providerInterface)
Registers
ProviderFactory objects which implement or extend the
given class. |
void |
registerProviderFactories(ProviderManager providerManager,
Class providerInterface,
ClassLoader classLoader)
Registers
ProviderFactory objects which implement or extend the
given class. |
public void registerProviderFactories(ProviderManager providerManager, Class providerInterface)
ProviderRegistration
ProviderFactory
objects which implement or extend the
given class.registerProviderFactories
in interface ProviderRegistration
providerManager
- to register the factories toproviderInterface
- of the ProviderFactory
objects to registerpublic void registerProviderFactories(ProviderManager providerManager, Class providerInterface, ClassLoader classLoader)
ProviderRegistration
ProviderFactory
objects which implement or extend the
given class.registerProviderFactories
in interface ProviderRegistration
providerManager
- to register the factories toproviderInterface
- of the ProviderFactory
objects to registerclassLoader
- to use to load or find the ProviderFactory
objectsprotected abstract Set findProviderFactories(Class providerInterface)
ProviderFactory
objects which implement or
extend the given interface or class.providerInterface
- of the returned ProviderFactory
objectsProviderFactory
objectsprotected abstract Set findProviderFactories(Class providerInterface, ClassLoader classLoader)
ProviderFactory
objects which implement or
extend the given interface or class.providerInterface
- of the returned ProviderFactory
objectsclassLoader
- to use to load or find the ProviderFactory
objectsProviderFactory
objects