接口 Instantiator.AvailableParameters

封闭类:
Instantiator<T>

public static interface Instantiator.AvailableParameters
Callback used to register available parameters.
  • 方法概要

    修饰符和类型
    方法
    说明
    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.
  • 方法详细资料

    • add

      void add(Class<?> type, Object instance)
      Add a parameter with an instance value.
      参数:
      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.
      参数:
      type - the parameter type
      factory - the factory used to create the instance that should be injected