This is a discussion on Re: Fwd: MPM-safe mp2 Singleton Pattern? - modperl ; Perfect! Great info from both...exactly what I needed. After Torsten's response, I theorized that I could abstract that functionality up and reveal a thin API for the creation/calling of singleton objects within a namespace in pnotes....but that seems to have ...
Perfect! Great info from both...exactly what I needed. After
Torsten's response, I theorized that I could abstract that
functionality up and reveal a thin API for the creation/calling of
singleton objects within a namespace in pnotes....but that seems to
have already been done with Apache::Singleton::Request. I'm glad I
decided to ask the experts before attempting a hack myself. Thanks
guys!
On Fri, Nov 7, 2008 at 1:18 PM, bharanee rathnawrote:
>> The simplest way is to put the object as a pnote:
>
> What Torsten said, but have a look at
>
> http://search.cpan.org/~miyagawa/Apa...e/Singleton.pm
>
> Apache::Singleton::Request is probably what you want.
>