org.springframework.boot.util

Interface Instantiator.AvailableParameters

  • Enclosing class:
    Instantiator<T>


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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      void add(java.lang.Class<?> type, java.util.function.Function<java.lang.Class<?>,java.lang.Object> factory)
      Add a parameter with an instance factory.
      void add(java.lang.Class<?> type, java.lang.Object instance)
      Add a parameter with an instance value.
    • Method Detail

      • add

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

        void add(java.lang.Class<?> type,
                 java.util.function.Function<java.lang.Class<?>,java.lang.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