Sim IJskes - QCG wrote:
Hello,

Has anybody ever worked on/with a static class that functions as a exporter registry? And, is it a really bad idea?

I would love to be able to do 'mysrv = GlobalExporter.export(myobj);'.

I've done this to create tracking of "authenticated" exports that allow me to free some resources when these objects become unreferenced or unexported explicitly.

I use single instance instead of static instance as my model though so that I can create test instances and do particular injections for other reasons too.

Gregg Wonderly

Reply via email to