Interface AotRepositoryConstructorBuilder


public interface AotRepositoryConstructorBuilder
Builder for AOT Repository Constructors.
Since:
4.0
Author:
Christoph Strobl, Mark Paluch
  • Method Details

    • addParameter

      void addParameter(String parameterName, Class<?> type)
      Add constructor parameter and create a field storing its value.
      Parameters:
      parameterName - name of the parameter.
      type - parameter type.
    • addParameter

      default void addParameter(String parameterName, org.springframework.javapoet.TypeName type)
      Add constructor parameter and create a field storing its value.
      Parameters:
      parameterName - name of the parameter.
      type - parameter type.
    • addParameter

      void addParameter(String parameterName, org.springframework.javapoet.TypeName type, boolean createField)
      Add constructor parameter.
      Parameters:
      parameterName - name of the parameter.
      type - parameter type.
      createField - whether to create a field for the parameter and assign its value to the field.
    • customize

      Add constructor customizer. Customizer is invoked after adding constructor arguments and before assigning constructor arguments to fields.
      Parameters:
      customizer - the customizer with direct access to the constructor builder.