[magnolia-dev] [JIRA] (SUGGEST-87) Replac e Guice container with Spring Framework?
"JIRA (on behalf of Martijn Kooijman)" <jira-O8DnXSz/[email protected]>
| Newsgroups | gmane.comp.cms.magnolia.devel |
|---|---|
| Message-ID | <[email protected]> |
Martijn Kooijman created an issue Suggestion Box / https://jira.magnolia-cms.com/browse/SUGGEST-87 SUGGEST-87 Replace Guice container with Spring Framework? Issue Type: Improvement Assignee: Unassigned Created: 07/Jun/17 3:43 PM Environment: Labels: collector-0cf1239d Reporter: Martijn Kooijman I know why you guys have chosen to use Guice container for Dependency Injection, and I know you see Spring Framework as bloated and evil, but... I think using Spring Framework has a number of benefits (although big architectural change): 1) You might be able to bundle Magnolia as a Spring Boot application and be able to start it without a Tomcat server! Or just build it as a standalone WAR was we do now. 2) Spring Framework does Dependency Injection by annotations, which (in my opinion) is so much better than the current way of configuring it in XML as we do with the Guice implementation. 3) Spring Framework provides many ways to integrate with external systems (like DB, SOAP, REST, Mail) without having to write a lot of boiler-plate code. 4) Spring Framework provides an easy way to build your own REST controllers with very few annotations, which I think is simpler than the Swagger imlementation that is used by most Magnolia users at the moment (and Swagger is also yet another external framework that you have to add). 5) The (again, in my opinion) terrible hybrid solution of using Blossom to mingle Guice and Spring can be dropped. All in all, I think Magnolia can benefit a lot from using a more 'mature' framework like Spring and can certainly make the work of developers that have to integrate with external systems a lot easier. And if you provide only a very limited set of Spring modules out-of-the-box, you might be able to keep it to a limited growth in size. Maybe it's worth re-investigating this? https://jira.magnolia-cms.com/browse/SUGGEST-87#add-comment Add Comment This message was sent by Atlassian JIRA (v7.2.6#72008-sha1:26175bf) ---------- ---------------------------------------------------------------- For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
(unnamed)
(image/jpeg, 1.5 KB) - not displayed
(unnamed)
(image/png, 1.1 KB) - not displayed
(unnamed)
(image/png, 457 B) - not displayed
(unnamed)
(image/png, 2.9 KB) - not displayed