dimanche 24 mai 2015

Is this flyweight pattern really a flyweight pattern?

Here's a tutorial I was reading:

http://ift.tt/1HqU3P7

However this doesn't seem a flyweight pattern because according to wikipedia "A flyweight is an object that minimizes memory use by sharing as much data as possible with other similar objects". In other words, I cannot see an object with intrinsic and extrinsic data. Here I can only see a factory with some sort of caching system.

Can someone demonstrate why this is or is not a flyweight pattern?

Aucun commentaire:

Enregistrer un commentaire