Package net.fortuna.ical4j.model
Class AbstractContentFactory<T>
- java.lang.Object
-
- net.fortuna.ical4j.model.AbstractContentFactory<T>
-
- All Implemented Interfaces:
Serializable
,Supplier<List<T>>
- Direct Known Subclasses:
ComponentFactoryImpl
,ParameterFactoryImpl
,PropertyFactoryImpl
@Deprecated public abstract class AbstractContentFactory<T> extends Object implements Serializable, Supplier<List<T>>
Deprecated.$Id$ Created on 28/01/2007 Abstract implementation of a content factory.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ServiceLoader
factoryLoader
Deprecated.
-
Constructor Summary
Constructors Constructor Description AbstractContentFactory(ServiceLoader factoryLoader, boolean allowIllegalNames)
Deprecated.Default constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected boolean
allowIllegalNames()
Deprecated.protected abstract boolean
factorySupports(T factory, String key)
Deprecated.List<T>
get()
Deprecated.protected T
getFactory(String key)
Deprecated.protected void
registerExtendedFactory(String key, T factory)
Deprecated.Define extensions in META-INF/services/net.fortuna.ical4j.model.[Type]Factory
-
-
-
Field Detail
-
factoryLoader
protected transient ServiceLoader factoryLoader
Deprecated.
-
-
Constructor Detail
-
AbstractContentFactory
public AbstractContentFactory(ServiceLoader factoryLoader, boolean allowIllegalNames)
Deprecated.Default constructor.
-
-
Method Detail
-
registerExtendedFactory
@Deprecated protected final void registerExtendedFactory(String key, T factory)
Deprecated.Define extensions in META-INF/services/net.fortuna.ical4j.model.[Type]FactoryRegister a non-standard content factory.
-
getFactory
protected final T getFactory(String key)
Deprecated.- Parameters:
key
- a factory key- Returns:
- a factory associated with the specified key, giving preference to standard factories
- Throws:
IllegalArgumentException
- if the specified key is blank
-
allowIllegalNames
protected boolean allowIllegalNames()
Deprecated.- Returns:
- true if non-standard names are allowed, otherwise false
-
-