public abstract class AbstractContentFactory<T>
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected java.util.ServiceLoader<T> |
factoryLoader |
Constructor and Description |
---|
AbstractContentFactory(java.util.ServiceLoader<T> factoryLoader)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
allowIllegalNames() |
protected abstract boolean |
factorySupports(T factory,
java.lang.String key) |
protected T |
getFactory(java.lang.String key) |
protected void |
registerExtendedFactory(java.lang.String key,
T factory)
Deprecated.
Define extensions in META-INF/services/net.fortuna.ical4j.model.[Type]Factory
|
protected transient java.util.ServiceLoader<T> factoryLoader
public AbstractContentFactory(java.util.ServiceLoader<T> factoryLoader)
@Deprecated protected final void registerExtendedFactory(java.lang.String key, T factory)
protected abstract boolean factorySupports(T factory, java.lang.String key)
protected final T getFactory(java.lang.String key)
key
- a factory keyjava.lang.IllegalArgumentException
- if the specified key is blankprotected boolean allowIllegalNames()