Interface Factory<T>

Type Parameters:
T - the type of the created object

public interface Factory<T>
The Factory interface provides a means of producing objects of a given type.
Author:
mf 2010.11.23
  • Method Summary

    Modifier and Type
    Method
    Description
    Create a new instance.
  • Method Details

    • create

      T create()
      Create a new instance.

      If the produced object requires constructor parameters, they must be externally communicated to the factory.

      Returns:
      a new instance