The class (as opposed to interface) proxying is supported but definitely not advised.  Can you not extract an interface from the Connection class?  Do you not have control over the classes which are dependent upon the Connection class?

 


From: John Coleman [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 01, 2006 3:35 AM
To: HiveMind user group
Subject: double instantiation?

 

Well I seem to have got my application going. But what I have found is that my Connection class gets instantiated twice. The first instance is really a proxy class, the second a direct instantiation of the underlying class.

 

As the Connection class is a registry shutdown listener, it also gets 2 shutdown events. This doesn't happen for the other services.

 

Any ideas what this is?

 

John

Reply via email to