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

Use Constructor-level dependency injections

    XMLWordPrintableJSON

Details

    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:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: