B
Bartholomew Simpson
I have a class which takes a while to instantiate (reads from shmmem,
then connects to db etc). I call this a "heavy" class. I would like to
use a "lightweight" version of the class - so that I can (for example),
create consts in my code, for reuse - however, I want to be able to
convert the lightweight object into a heavy weight counterpart, when I
need to do some rare stuff.
I remember coming accross a DP that allows one to do this but - and I
can't locate it in the GoF constructional patterns ... ?
then connects to db etc). I call this a "heavy" class. I would like to
use a "lightweight" version of the class - so that I can (for example),
create consts in my code, for reuse - however, I want to be able to
convert the lightweight object into a heavy weight counterpart, when I
need to do some rare stuff.
I remember coming accross a DP that allows one to do this but - and I
can't locate it in the GoF constructional patterns ... ?