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