Flyweight

This is a UML class diagram example for the Flyweight design pattern.

Purpose

Facilitates the reuse of many fine grained objects, making the utilization of large numbers of objects more efficient.

Use When

  • Many like objects are used and storage cost is high.
  • The majority of each object's state can be made extrinsic.
  • A few shared objects can replace many unshared ones.
  • The identity of each object does not matter.
Import into your Project

Posted by: Manuel Kearney

Turn every software project into a successful one.

Try Visual Paradigm for Free! Or learn more about our features.

0 0 vote
Article Rating
guest
0 Comments
Inline Feedbacks
View all comments