Jun Gan created SCB-1905:
----------------------------

             Summary: [Refactor service-registry Module] Refactor Registry 
Factory architecture
                 Key: SCB-1905
                 URL: https://issues.apache.org/jira/browse/SCB-1905
             Project: Apache ServiceComb
          Issue Type: Improvement
            Reporter: Jun Gan
         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.3.4#803005)

Reply via email to