Interface Instantiator.AvailableParameters

Enclosing class:
Instantiator<T>

public static interface Instantiator.AvailableParameters
Callback used to register available parameters.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(Class<?> type, Object instance)
    Add a parameter with an instance value.
    void
    add(Class<?> type, Function<Class<?>,Object> factory)
    Add a parameter with an instance factory.
  • Method Details

    • add

      void add(Class<?> type, Object instance)
      Add a parameter with an instance value.
      Parameters:
      type - the parameter type
      instance - the instance that should be injected
    • add

      void add(Class<?> type, Function<Class<?>,Object> factory)
      Add a parameter with an instance factory.
      Parameters:
      type - the parameter type
      factory - the factory used to create the instance that should be injected