public abstract class AbstractProviderRegistration extends java.lang.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 java.util.Set |
findProviderFactories(java.lang.Class providerInterface)
Returns the list of
ProviderFactory objects which implement or
extend the given interface or class. |
protected abstract 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. |
void |
registerProviderFactories(ProviderManager providerManager,
java.lang.Class providerInterface)
Registers
ProviderFactory objects which implement or extend the
given class. |
void |
registerProviderFactories(ProviderManager providerManager,
java.lang.Class providerInterface,
java.lang.ClassLoader classLoader)
Registers
ProviderFactory objects which implement or extend the
given class. |
public void registerProviderFactories(ProviderManager providerManager, java.lang.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, java.lang.Class providerInterface, java.lang.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 java.util.Set findProviderFactories(java.lang.Class providerInterface)
ProviderFactory
objects which implement or
extend the given interface or class.providerInterface
- of the returned ProviderFactory
objectsProviderFactory
objectsprotected abstract java.util.Set findProviderFactories(java.lang.Class providerInterface, java.lang.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