Ticket #4 (new enhancement)

Opened 2 years ago

Last modified 1 year ago

Factories + poolers

Reported by: jordi Owned by: nobody
Priority: minor Milestone: oncoming
Component: planetsim Version: PlanetSim 3
Keywords: factories poolers Cc:

Description

Enable that each Factory could become at the same time a Pool of that kind of objects. This schema enables object reutilization and avoid the Garbage Collector.

The basic idea is that each built object by a factory must implement (by inheriting from a superclass or so on) that when the Object.finalize() methos would be invoked, this cause that this free object returns to the Pool of the Factory.

So, when Factory have to build a new instance, it first checks its own Pool for any existing instance. In other case, build (i.e. builds a new instance) of the required class.

Change History

Changed 2 years ago by jordi

  • owner changed from somebody to nobody

Changed 2 years ago by jordi

  • version set to PlanetSim 3.0
  • milestone set to oncoming

Changed 1 year ago by anonymous

  • cc None added
  • keywords None added
  • summary changed from Factories + poolers to None
  • priority changed from major to trivial

Changed 1 year ago by jordi

  • keywords factories poolers added; None removed
  • priority changed from trivial to minor
  • summary changed from None to Factories + poolers

Changed 1 year ago by jordi

  • cc None removed
Note: See TracTickets for help on using tickets.