动态服务选择——选择调用多个具有相同接口的组件中的哪一个。
Dynamic service selection - Chooses which of multiple components with the same interface to invoke.
然后存储卡就可以选择扩展,并且业务组件实现可以用于相同的范围。
Then the extension can be picked up by the registry, and the business component implementation is available in the same scope.
我们也可以为组件和导入使用不同的接口,但本文为了简单起见,选择了使用相同的接口。
We could also have used different interfaces for the component and the import — but for simplicity in this article, we have opted to make use of the same interface.
应用推荐