除了 IoC 和 IoC 之外,类和项目中的解耦依赖注入(java)
除了 IoC 和依赖注入之外,还有哪些其他解耦模式和实践可以用于对象内部以及对象之间(在项目中)。
如果您可以发布 Java 示例(如果有的话),那就太棒了。
我正在与 Spring 一起工作,但我遇到了豆子无法解决问题的情况。所以我只是想看看其他选择。主要是与第三方 API 的集成,这些 API 在编写时很少考虑 OOP。某些 API 代码的可重用性非常糟糕。
What other (besides IoC & Dependency Injection) decoupling patterns and practices could be used inside of an object and than between objects (in project).
If you could post samples if any in Java that would be awesome.
I'm working with spring and I'm running into situations where beans just won't cut it. So I just want to see alternative options. Mainly it is with integration of 3th party APIs that are written with very little consideration when comes to OOP. The re-usability of some of the API code is just atrocious.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
面向方面的编程。 Spring也支持它 http://static.springsource.org/spring /docs/2.5.x/reference/aop.html
Aspect Oriented programming. Spring also supports it http://static.springsource.org/spring/docs/2.5.x/reference/aop.html