Uploaded image for project: 'Syncope'
  1. Syncope
  2. SYNCOPE-1618

Use Constructor-level dependency injections

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.1.8
    • 3.0.0
    • common, console, core, enduser, sra, wa
    • None

    Description

      See syncope-dev discussion.

      In summary:

      • Avoid field-injections and use ctor-level injections (this is the general recommendation from Spring)
      • Do not use autowire/component/etc directly in business-level classes; do not rely as much (if ever) on classpath/context scanning and instead, create and instantiate the bean directory in @Configuration classes, conditionally and with direct control

       

      Attachments

        Activity

          People

            ilgrosso Francesco Chicchiriccò
            mmoayyed Misagh Moayyed
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: