The first principle is: "Program to an interface, not an implementation."
第一条是:“面向接口编程,而非面向实现编程”。
JMS is ideal in this situation because it is an interface specification — not an implementation.
在这种情况下JMS非常理想,因为它是一种接口规范——而不是实现。
Although the REST support is not an implementation of JAX-RS, it has more features than the specification defines.
虽然,对REST的支持并不是JAX - RS的一种实现,但是它具有比标准定义更多的特性。
Program to an interface, not an implementation.
面向接口编程,而不要面向实现编程。
Program to an interface, not an implementation.
要针对接口编程,不要针对实现编程。
Program to an interface, not an implementation.
针对接口而写编程,不要针对实现。
Abstractions should not depend upon details, details should depend upon abstractions. Program to an interface, not an implementation.
抽象不应该依赖于细节,细节应该依赖于抽象,要针对接口编程,不要针对实现编程。
Abstractions should not depend upon details, details should depend upon abstractions. Program to an interface, not an implementation.
抽象不应该依赖于细节,细节应该依赖于抽象,要针对接口编程,不要针对实现编程。
应用推荐