CIS-75 Home http://www.c-jump.com/CIS75/CIS75syllabus.htm

Object Pool Design Pattern


  1. Object Pool Design Pattern
  2. Object Pool UML Diagram
  3. Object Pool Collaboration
  4. DHCP Server Example

1. Object Pool Design Pattern



2. Object Pool UML Diagram


  • A Reusable Pool class manages a cache of concrete Reusable Objects.

  • A Reusable Object is often referred to as a subject of the pool.

  • Generally the pool will be a growing pool:

    1. Pool can be empty at the beginning, or pre-populated with a number of subjects.

    2. Pool can create new subjects.

    3. Pool may restrict the maximum number of subjects created.

    Reusable Pool Class
  • Reusable Pool class is designed to be
    a Singleton class.


3. Object Pool Collaboration



4. DHCP Server Example