On Sunday, July 20, 2003, at 06:15 PM, <[EMAIL PROTECTED]> wrote:

<snip>

Moving to a Singleton + Static Delegator (static methods delegated to an
internal singleton reference) could be a nice way to go.  It'd allow me
to add new string utilities via subclassing of the singleton (assuming
it's a configurable singleton).

there are a few wrinkles if you want to use this kind of construction in a library which will be shared between web applications. what you need is a pseudo-singleton ie a singleton that is a per web application singleton (rather than per VM) and which will be available for garbage collection if the web application is undeployed.


- robert


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to