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