views:

380

answers:

2

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.

+21  A: 

The only reference I've ever heard to a Design Pattern and 'Ghost' is in Lazy-Loading.

Since Lazy-loading involves only loading the object when it's actually needed, you can think of it as a 'Ghost' until then. You can see its outline, but can't really use it until it's loaded.

George Stocker
@George Yeah I was reading that but it did not make a whole lot of sense to me
David Relihan
@David: Yeah, since when do ghosts materialize when someone touches them?
intuited
+3  A: 

It's not in GOF nor Fowler PoEAA, the only thing I can think of it as something similar its a Proxy for lazy loading.

Markust
That would make sense alright
David Relihan