Alex Rivera | Logout

What is the Ghost Design Pattern?

Asked 2010-06-09T17:58:01.720
14

Someone recently asked a question about the Ghost Design Pattern - I have not seen this before.

What is the Ghost Design Pattern and how is it implemented? I can only find snippets on the web in reference to it.

Edit
Report

1 Answer

5

Ghosts are mentioned in PoEAA, pp 202, 206-14. A ghost is a lazy loaded object that contains just enough info to instantiate itself on demand. They can be useful because they can trigger a bulk load of similar ghosts on the first access if they register themselves with a loader (dunno if Fowler mentions that bit though).

answered 2012-03-28T16:25:34.550

Your Answer