Is there a good DI framework suitable for Java 1.4 and SE (Swing) apps?

北战南征 提交于 2019-12-13 16:42:58

问题


I am looking for a dependency injection framework for a Java SE (Swing) application that runs under JDK 1.4. Are there any recommended DI frameworks that I can use? (Guice and other annotation-based frameworks are out, and I don't want to mess with something like Retroweaver.)

Also, is Spring suitable for use in a Java SE application?

edit: this is a legacy application (which is why it's jdk 1.4) - I want to use spring to get some sanity into the ball of mud


回答1:


yes, it is. There is even a whole project called Spring Rich Client:

Spring-RCP's mission is to provide an elegant way to build highly-configurable, GUI-standards-following rich-client applications faster by leveraging the Spring Framework, and a rich library of UI factories and support classes.



来源:https://stackoverflow.com/questions/1273979/is-there-a-good-di-framework-suitable-for-java-1-4-and-se-swing-apps

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!