ETC(78)
-
Design Pattern, Command
Object Behavioral Pattern Command Pattern ----------------- INDEX ----------------- Command Pattern ? Structure Sample Code: Java Applicability 관련 패턴 ---------------------------------------------- Encapsulate a request as an object, thereby letting you parameterize clients with different requests, queue or log requests, and support undoable operations. - GoF Design Patterns 커맨드 패턴은 요청을 객체의 형태로 캡..
2022.02.06 -
Design Pattern, Decorator
Object Structural Pattern Decorator Pattern ----------------- INDEX ----------------- Decorator Pattern ? Structure Sample Code: Java 관련 패턴 ---------------------------------------------- Attach additional responsibilities to an object dynamically. Decorators provide a flexible alternative to subclassing for extending functionality. - GoF Design Patterns 장식자 패턴은 주어진 상황 및 용도에 따라 어떤 객체에 책임을 덧붙이는 패턴..
2022.02.03 -
Design Pattern, Composite
Object Structural Pattern Composite Pattern ----------------- INDEX ----------------- Composite Pattern ? Recursive Structure Sample Code: Java Pros & Cons 관련 패턴 ---------------------------------------------- Compose objects into tree structures to represent part-whole hierarchies. Composite lets clients treat individual objects and compositions of objects uniformly. - GoF Design Patterns 복합체 패턴..
2022.02.01 -
Design Pattern, Singleton
Object Creational Pattern Singleton Pattern ----------------- INDEX ----------------- Singleton Pattern ? Structure Sample Code: Java Race Condition 관련 패턴 ---------------------------------------------- Ensure a class only has one instance, and provide a global point of access to it. - GoF Design Patterns 싱글턴 패턴은 클래스 당 인스턴스를 하나만 존재하게 하고, 전역적인 접근 지점을 제공합니다. 프린터를 통해 문서를 출력한다고 해봅시다. 서로 다른 문서를 출력할 때마..
2022.01.26 -
Design Pattern, Mediator
Object Behavioral Pattern Mediator Pattern ----------------- INDEX ----------------- Mediator Pattern ? Structure Case Study Sample Code: Java 관련 패턴 ---------------------------------------------- Define an object that encapsulates how a set of objects interact. Mediator promotes loose coupling by keeping objects from referring to each other explicitly, and it lets you vary their interaction inde..
2022.01.24 -
Design Pattern, Adapter
Object, Class Structural Pattern Adapter Pattern ----------------- INDEX ----------------- Adapter Pattern ? Structure Sample Code: Java 관련 패턴 ---------------------------------------------- Convert the interface of a class into another interface clients expect. Adapter lets classes work together that couldn't otherwise because of incompatible interfaces. - GoF Design Patterns 어댑터 패턴은 클래스의 인터페이스를..
2022.01.23