You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@sis.apache.org by "Martin Desruisseaux (Jira)" <ji...@apache.org> on 2022/07/15 21:42:00 UTC

[jira] [Closed] (SIS-102) Choose a dependency injection library for SIS

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

Martin Desruisseaux closed SIS-102.
-----------------------------------
    Resolution: Won't Fix

Superseded by planed modularisation with Jigsaw.

> Choose a dependency injection library for SIS
> ---------------------------------------------
>
>                 Key: SIS-102
>                 URL: https://issues.apache.org/jira/browse/SIS-102
>             Project: Spatial Information Systems
>          Issue Type: Task
>          Components: Utilities
>            Reporter: Martin Desruisseaux
>            Priority: Major
>
> We need to choose a dependency injection mechanism (CDI). Johann Sorel provided the following analysis:
> There is basically two overlapping Java Specification Requests (JSR):
> * {{JSR-299}} is the complete CDI version ({{cdi-api}})
> * {{JSR-330}} can be seen as a lightweight version of {{JSR-299}}. Whether this is an improvement appears questionable.
> {{JSR-330}} provides only a limited amount of injection possibilities and does not provide discovery mechanism. Consequently it would not be a replacement for our current usage of {{META-INF/services}} entries. Google _Guice 3_ is a {{JSR-330}} implementation.
> {{JSR-299}} is more complete and provides a discovery mechanism. _Weld 1_ is the reference implementation.
> The next CDI version will be {{JSR-346}}, available as a draft at the time of writing. _Weld 2_ is aimed to be the reference implementation.
> Recommendation is to wait for {{JSR-346}}. The difference with {{JSR-299}} seems small. This new JSR aims to brings "updates and clarifications to CDI 1.0 along much requested features".



--
This message was sent by Atlassian Jira
(v8.20.10#820010)