Skip to content

Conversation

@wonu606
Copy link
Contributor

@wonu606 wonu606 commented Jun 22, 2023

📌 PR 설명
GUI OS를 생성

👩‍💻 요구 사항과 구현 내용

  • GUI OS를 팩토리를 통해 생성합니다.

    GUI만을 사용자가 정하지 안에 들어있는 요소들은 사용자가 알 필요가 없으므로 팩토리 패턴을 이용하여 생성합니다.
    
  • Main에서 싱글톤을 이용하여 생성함

    - 각 요소들은 차후 커스텀이 있을 수 있어 싱글톤으로 만들기엔 리스트가 있다고 생각했습니다.
    - 각 GUI OS 팩토리 구현체는 생성만을 담당하고, 정보의 변화가   
      없으므로 계속 팩토리 구현체를 생성하는 것보다 미리 생성해 둔 구현체를 사용하는 것이 바람직하다고 생각했습니다.
    


public class Main {

private static GUIFactory macOSFactory = new MacOSFactory();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

사용하지 않을 경우에도 메모리를 점유하는 문제가 있는 것 같아요!
사용하고자 할 때에만 생성하는 방식은 어떤가요~?🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants