Quantboy’s Weblog

Just another WordPress.com weblog

Patterns

Good writeup on patterns on wiki.

Wait a second. A flyweight factory is just a cache of common objects- with public methods which can do things for you. Instead of creating new objects each time, use the flyweight factory to get an instance of an object- which has some common attributes and which also has a method for use to return unique attributes.

Advertisement

Written by quantboy

March 9, 2008 at 1:27 am

Posted in Patterns

Follow

Get every new post delivered to your Inbox.