Search Mechanism for Encapsulate Classes with Factory Refactoring Opportunities

  • Thiago Cassio Krug IFFar
  • Eduardo Kessler Piveta UFMS


Software systems must evolve to avoid its degradation. The refactoring technique associated with the application of design patterns help software consistent evolution. A refactoring opportunity consists of a source code that can be altered by refactoring to improve its quality. In this sense, this study presents a mechanic to search refactoring opportunities to Encapsulate Classes with Factory refactoring pattern. Some clues and refactoring steps which aid to solve the indicated problems are described. We conducted a case study with a set of open-source projects to evaluate the opportunities identified by the mechanic.
Palavras-chave: refactoring, design patterns, Refactoring to patterns
KRUG, Thiago Cassio; PIVETA, Eduardo Kessler. Search Mechanism for Encapsulate Classes with Factory Refactoring Opportunities. In: SIMPÓSIO BRASILEIRO DE COMPONENTES, ARQUITETURAS E REUTILIZAÇÃO DE SOFTWARE (SBCARS), 17. , 2023, Campo Grande/MS. Anais [...]. Porto Alegre: Sociedade Brasileira de Computação, 2023 . p. 31–40.