Uploaded image for project: 'Agroal'
  1. Agroal
  2. AG-241

Switch from property injection to constructor injection in Spring-Boot AutoConfiguration

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Minor Minor
    • 2.5
    • 2.4
    • spring
    • None

      Using constructor injection instead of property injection helps to use AgroalDataSourceConfiguration to different kind of use cases. It also allows to better hide internal variables and make them immutable.

      As already discussed, the class should also be renamed to AgroalDataSourceAutoConfiguration to better reflect Spring-Boot naming conventions of AutoConfiguration beans.

            lbarreiro-1 Luis Barreiro
            graben1181 Benjamin Graf
            Benjamin Graf
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: