1 / 4

Registry Design Pattern

Registry Design Pattern. keeping track of objects. Registry Motivation & Provenance. non-canonical (not out of Gamma et al) design pattern described by Martin Fowler in "Patterns of Enterprise Application Architecture"

aeggen
Download Presentation

Registry Design Pattern

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Registry Design Pattern keeping track of objects

  2. Registry Motivation & Provenance • non-canonical (not out of Gamma et al) design pattern • described by Martin Fowler in "Patterns of Enterprise Application Architecture" • well-known object that other objects use to find common objects and services

  3. Registry Implementation details • registry is usually a global object • may be implemented as singleton • objects to be looked up register with the registry • object lookup is performed by key • key-ed map is often used as implementation • may be used to pass information to objects withoutlookup evaluation • global object – creates external dependencies • may be preferred to passing them around as parameters

  4. Registry Review • why is it called a non-canonical pattern? • what is Registry and what kind of functionality should it provide? • where and how should Registry be used? • Registry is a global object. How is this implemented in C++? • why can’t just a global queue be used to implement the functionality of a Registry? • What’s wrong with using Registry and why is it used anyway?

More Related