Interface Factory<T,C>

Type Parameters:
T - The type of produced instances.
C - The type of configuration objects.
All Known Subinterfaces:
LabelFactory<T>, OptionFactory

public interface Factory<T,C>
A factory creating instances of type T based on a given configuration.
Since:
5.2.210803
  • Method Summary

    Modifier and Type
    Method
    Description
    create(C config)
    Create an instance of type T based on the given configuration.
  • Method Details

    • create

      T create(C config) throws de.espirit.common.util.FactoryException
      Create an instance of type T based on the given configuration.
      Parameters:
      config - The configuration.
      Returns:
      The produced instance.
      Throws:
      de.espirit.common.util.FactoryException - If an instance could not be created.
      Since:
      5.2.210803