I think the only real way to do it is with an adapter class. It would be a subclass of HttpConnection that takes a connection in the constructor. It would just pass all method calls along to the real connection, until the connection is released.

Mike

Ortwin Gl�ck wrote:
Michael Becke wrote:

I like your idea of wrapping the real connection in another layer. I should have some time to try this out today. I will post anything I come up with.

Unfortunately Java has no native closures otherwise this would be easy to implement. Maybe you know of a well-established pattern to make closure in Java?


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


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

Reply via email to