是否有适合Java 1.4和SE(Swing)应用程序的良好DI框架? [英] Is there a good DI framework suitable for Java 1.4 and SE (Swing) apps?
问题描述
我正在寻找在JDK 1.4下运行的Java SE(Swing)应用程序的依赖项注入框架。我可以使用任何推荐的DI框架吗? (Guice和其他基于注释的框架已经发布了,我不想弄混Retroweaver之类的东西。)
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.)
此外,Spring也适合在Java中使用。 SE应用程序?
Also, is Spring suitable for use in a Java SE application?
编辑:这是一个遗留应用程序(这就是为什么它是jdk 1.4的原因)-我想用spring使泥泞变得更聪明
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
推荐答案
是的。甚至还有一个名为 Spring Rich Client 的项目:
yes, it is. There is even a whole project called Spring Rich Client:
Spring-RCP的任务是提供一种优雅的方式来构建高度可配置的GUI标准,从而通过利用以下功能更快地实现富客户端应用程序Spring Framework,以及丰富的UI工厂和支持类库。
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.
这篇关于是否有适合Java 1.4和SE(Swing)应用程序的良好DI框架?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!