[ 
https://issues.apache.org/jira/browse/SYNCOPE-1618?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Misagh Moayyed updated SYNCOPE-1618:
------------------------------------
    Description: 
See syncope-dev discussion at 
[https://lists.apache.org/thread.html/r99530cad4c763eb8d97f52575be46ed74f088cd43271600b0b1d7ee2%40%3Cdev.syncope.apache.org%3E]

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

 

  was:
See [syncope-dev discussion at 
[https://lists.apache.org/thread.html/r99530cad4c763eb8d97f52575be46ed74f088cd43271600b0b1d7ee2%40%3Cdev.syncope.apache.org%3E]

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

 


> Use Constructor-level dependency injections
> -------------------------------------------
>
>                 Key: SYNCOPE-1618
>                 URL: https://issues.apache.org/jira/browse/SYNCOPE-1618
>             Project: Syncope
>          Issue Type: Task
>          Components: common, console, core, sra, wa
>    Affects Versions: 2.1.8
>            Reporter: Misagh Moayyed
>            Priority: Major
>             Fix For: 3.0.0
>
>
> See syncope-dev discussion at 
> [https://lists.apache.org/thread.html/r99530cad4c763eb8d97f52575be46ed74f088cd43271600b0b1d7ee2%40%3Cdev.syncope.apache.org%3E]
> 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
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to