public abstract class AbstractFactoryRegistry<T>
extends java.lang.Object
Constructor and Description |
---|
AbstractFactoryRegistry(java.util.ServiceLoader<T> factoryLoader) |
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
factorySupports(T factory,
java.lang.String name) |
T |
getFactory(java.lang.String name) |
void |
register(java.lang.String extendedName,
T factory)
Deprecated.
register factories via META-INF/services
|
public AbstractFactoryRegistry(java.util.ServiceLoader<T> factoryLoader)
protected abstract boolean factorySupports(T factory, java.lang.String name)
public final T getFactory(java.lang.String name)
name
- a string representation of a content identifier@Deprecated public final void register(java.lang.String extendedName, T factory)
extendedName
- a non-standard name to registerfactory
- a factory for creating instances of the non-standard type