Module ical4j.core

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:
  • Field Details

    • factoryLoader

      protected transient ServiceLoader factoryLoader
      Deprecated.
  • Constructor Details

    • AbstractContentFactory

      public AbstractContentFactory(ServiceLoader factoryLoader, boolean allowIllegalNames)
      Deprecated.
      Default constructor.
  • Method Details

    • registerExtendedFactory

      @Deprecated protected final void registerExtendedFactory(String key, T factory)
      Deprecated.
      Define extensions in META-INF/services/net.fortuna.ical4j.model.[Type]Factory
      Register a non-standard content factory.
    • factorySupports

      protected abstract boolean factorySupports(T factory, String key)
      Deprecated.
    • 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
    • get

      public List<T> get()
      Deprecated.
      Specified by:
      get in interface Supplier<T>