Builder Pattern

복잡한 객체를 생성하는 방법과 표현하는 방법을 정의하는 클래스를 별도로 분리하여 서로다른 표현이라도 이를 생성할 수 있는 동일한 구축공정을 제공할 수 있도록 한다.
Separate the construction of a complex object from its representation so that the same construction process can create different representations.


* Builder

  • Product 객체의 일부요소들을 생성하기 위한 추상인터페이스를 정의. specifies an abstract interface for creating parts of a Product object

* ConcreteBuilder 

  • Builder 클래스에 정의된 인터페이스를 구현하며, 제품의 부품들을 모아 빌더를 합성한다. constructs and assembles parts of the product by implementing the Builder interface
  • 생성한 요소의 표현을 정의하고 관리한다. defines and keeps track of the representation it creates
  • 체품을 검색하는데 필요한 인터페이스를 제공한다. provides an interface for retrieving the product

* Director

  • Builder 인터페이스를 사용하는 객체를 합성한다. constructs an object using the Builder interface

* Product

  • 구축할 복합 객체를 표현한다. ConcreteBuilder는 제품의 내부를 표현을 구축하고 어떻게 모아 하나로 만드는지의 과정을 정의한다.
    represents the complex object under construction. ConcreteBuilder builds the product's internal representation and defines the process by which it's assembled includes classes that define the constituent parts, including interfaces for assembling the parts into the final result

by 이카로스 | 2006/09/11 15:18 | Design Pattern | 트랙백(1) | 핑백(1) | 덧글(0)

트랙백 주소 : http://icarosss.egloos.com/tb/334208
☞ 내 이글루에 이 글과 관련된 글 쓰기 (트랙백 보내기) [도움말]
Tracked from Gerald 의 프로그래밍 at 2006/09/26 17:33

제목 : Builder Pattern
예의인지 예의가 아닌지 모르겠다. 디자인패턴을 공부하던중 이글루스에서 디자인 패턴을 공부하시는분의 불로그를 보았다. 참 괜찮게 정리를 해놓으 신거 같은데...... 예의 무릅쓰고 트랙백을 걸어서...같이 공부도 해볼겸 의견도 교환 해볼려 한다. 참고로 사전에 동의를 구하지는 않았는데 ㅠ.ㅠ ----------------------------------------------------------------......more

Linked at 끙애내꼬 : Builder P.. at 2009/08/14 15:46

... -----------------------------------------------------------------------------------이글은 http://icarosss.egloos.com/334208 을 기본으로 하고 있습니다.빌더 패턴...부분 부분 생성을 통한 전체 객체 생성이라고 한다.어렵다 무슨말이냐....롯데리아에 가면....햄 ... more

:         :

:

비공개 덧글

.

<< 이전 페이지     다음 페이지 >>