ETC(79)
-
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, Abstract Factory
Creational Object Pattern Abstract Factory Pattern ----------------- INDEX ----------------- Abstract Factory Pattern ? Abstraciton pros and cons Structure Sample Code: Java 관련 패턴 ---------------------------------------------- Provide an interface for creating families of related or dependent objects without specifying their concrete classes. - GoF Design Patterns 추상 팩토리 패턴은 추상화된 클래스에 의존하여 서로 연관..
2022.01.05 -
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 -
Design Pattern, Template Method
Behavioral Class Pattern Template Method Pattern Define the skeleton of an algorithm in an operation, deferring some steps to subclasses. Template Method lets subclasses redefine certain steps of an algorithm without changing the algorithm's structure. - GoF Design Patterns 템플릿 메서드 패턴은 알고리즘의 구조를 메소드에 정의하고, 하위 클래스에서 알고리즘 구조의 변경없이 알고리즘을 재정의 하는 패턴입니다. 메서드를 이용해 각 단계를 템플릿 구조화하고 행동을 구분합니다. 템플릿Template..
2022.01.01