Design Patterns(16)
-
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 -
Design Pattern, Observer
Object Behavioral Pattern Observer Pattern ----------------- INDEX ----------------- Observer Pattern ? hollywood principle Structure Sample Code: Java 관련 패턴 ---------------------------------------------- Define a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically. - GoF Design Patterns 옵저버 패턴은 개체 간의 일대다 종속성을 정의..
2022.01.21 -
Design Pattern, Proxy
Structural Object Pattern Proxy Pattern ----------------- INDEX ----------------- Proxy Pattern ? Structure Sample Code: Java Applicability 원격 프록시 Remote Proxy 가상 프록시 Virtual Proxy 보호 프록시 Protection Proxy 스마트 참조자 프록시 Smart Reference Proxy 관련 패턴 ---------------------------------------------- Provide a surrogate or placeholder for another object to control access to it. - GoF Design Patterns 프록시 패..
2022.01.12 -
Design Pattern, Factory Method
Factory Method Pattern Define an interface for creating an object, but let subclasses decide which class to instantiate. Factory Method lets a class defer instantiation to subclasses. - GoF Design Patterns 팩토리 메서드 패턴은 상위 클래스에서 객체의 인터페이스를 정의하고, 하위 클래스가 객체를 생성할지를 결정하도록 하는 패턴입니다. 객체를 하위 클래스에서 생성되도록 시키는 것이죠. Factory Method Pattern는 Factory와 Template Method Pattern이 결합된 형태입니다. vs Simple Factory Facto..
2022.01.03