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

Use Constructor-level dependency injections

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.1.8
    • Fix Version/s: 3.0.0
    • Component/s: common, console, core, sra, wa
    • Labels:
      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

            • Assignee:
              Unassigned
              Reporter:
              mmoayyed Misagh Moayyed
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: