Interface Assembly.InstanceFactory<T,O>

Type Parameters:
T - The instance type.
O - The options type.
Enclosing class:
Assembly<I,T,O>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface Assembly.InstanceFactory<T,O>
Responsible for creating an instance, taking in account the provided options.
  • Method Summary

    Modifier and Type
    Method
    Description
    create(O options)
    Creates an instance of type T with the given options.
  • Method Details

    • create

      T create(O options)
      Creates an instance of type T with the given options.
      Parameters:
      options - The options to use.
      Returns:
      The new instance.
      Throws:
      IllegalArgumentException - If the options are invalid.