How can I catch connection requests in my framework?
Posted
by Falx
on Stack Overflow
See other posts from Stack Overflow
or by Falx
Published on 2010-02-11T10:59:56Z
Indexed on
2010/06/01
6:03 UTC
Read the original article
Hit count: 184
I'm building a framework (OSGi-like) where other parties can program a bundle for. But I want my framework to manage the QoS of the connection-requests that the other parties will do.
The easy solution would be to ask them to use (or enforce them to use - although I don't know how) a specific ConnectionRequest bundle of the framework. The problem with this approach is that they wouldn't be able to use any of their own preferred libraries that is counting on the standard Java libraries to make a connection(request).
So I wondered if there is a way in Java to catch all the requested connections, so I can add some code about my QoS handling, before its is sent of to the underlaying layer?
© Stack Overflow or respective owner