Posted by FluffyCat on 12/17/62 11:56
Yesterday I continued my series of design patterns examples using PHP
5 with the Bridge Pattern. Here now is my 18th design pattern
example, the Flyweight Pattern.
http://www.fluffycat.com/PHP-Design-Patterns/Flyweight/
In the flyweight pattern we conserve resources by sharing instances of
a class which are identical.
The creating of these instances is controlled by a factory which will
only create one if it does not already exist, and will return the
shared instance to the requestor.
Navigation:
[Reply to this message]
|