Is there a good DI framework suitable for Java 1.4

2019-07-20 14:24发布

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条回答
ら.Afraid
2楼-- · 2019-07-20 15:02

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.

查看更多
登录 后发表回答