Interface ActiveObjectFactory<T,I,O>

Type Parameters:
T - the type of ActiveObject to be created
I - the type of the identifier used for creating the ActiveObject
O - the type of the optional options used during creation, can be null
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 interface ActiveObjectFactory<T,I,O>
Factory interface for creating ActiveObject instances.

This interface defines a method to create an instance of type T using an identifier of type I and optional options of type O.

Author:
Sergey Grachev
  • Method Summary

    Modifier and Type
    Method
    Description
    create(I id, O options)
    Creates an instance of an ActiveObject.
  • Method Details

    • create

      T create(I id, @Nullable O options)
      Creates an instance of an ActiveObject.
      Parameters:
      id - the identifier for the ActiveObject to be created
      options - optional configuration options; may be null if not required
      Returns:
      a new instance of the ActiveObject type T