Refactoring to Adapter Pattern

Below is a practice about refactoring to adapter pattern:

Refactoring to Adapter Pattern_第1张图片
Jani.png
  • Extract Interface (ITagNode)
  • Replace Element with ITagNode in DomBuilder and XMLBuilder
  • Pull method to AbstractBuilder
  • Remove duplicated codes

https://github.com/janipeng/refactor_adapter_pattern

你可能感兴趣的:(Refactoring to Adapter Pattern)