You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicecomb.apache.org by "liubao (Jira)" <ji...@apache.org> on 2024/01/03 07:26:00 UTC
[jira] [Closed] (SCB-1905) Refactor Registry Factory Architecture and Interface
[ https://issues.apache.org/jira/browse/SCB-1905?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
liubao closed SCB-1905.
-----------------------
Resolution: Fixed
> Refactor Registry Factory Architecture and Interface
> ----------------------------------------------------
>
> Key: SCB-1905
> URL: https://issues.apache.org/jira/browse/SCB-1905
> Project: Apache ServiceComb
> Issue Type: Task
> Components: Java-Chassis
> Reporter: Jun Gan
> Priority: Major
> Attachments: image-2020-05-14-15-41-33-706.png
>
>
> Currently, the factory design is based on static factory pattern, which means, if we have to add new registry mechanism , we need to modify this static factory class (i.e. ServiceRegistryFactory.java). This design doesn't follow *O*pen/Closed Principle design principal. We should refactor to adopt factory method design pattern. i.e. each registry mechanism has its own factory classs.
> !image-2020-05-14-15-41-33-706.png!
--
This message was sent by Atlassian Jira
(v8.20.10#820010)