Richard S. Hall wrote:
Sahoo wrote:
Karl Pauls wrote:
Recently I observed some some interesting behaviors while trying to
use JRE
defined property called "java.protocol.handler.pkgs" to locate
URLStreamHandler. Yes, I know I should be using OSGi URL handler
service,
but that's a separate discussion. Here are my observations:
1. I don't see any Handler for *bundle* scheme. So, if I disable
urlhandler
service (felix.service.urlhandlers=false in config.properties),
then any URL
with *bundle* scheme can't be used. Should there not be handlers
for all
Felix defined schemes?
I don't think that the bundle protocol handler would be generally
useful. It's only meaningful in the context of a framework and as such
implementation specific as well...
Does Felix not return URL with bundle scheme for any resource found
in a bundle? If yes, how JVM use that URL when urlhandler service is
switched off?
Felix uses the URL constructor that accepts a stream handler and we
pass in our custom handler there. Of course, this means that you
cannot convert the URL to a string and then back to a URL, but there
isn't much we can do about that.
Could Felix not have a Handler like org.apache.felix.bundle.Handler so
that one could add it to the pkg list that JVM searches for custom url
handlers?
Thanks,
Sahoo
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]