Hi, I am trying to use undertow (http://undertow.io) in an OSGi context. It relies on xnio which uses a ServiceLoader to hook up to an xnio provider. I can change the manifest easily enough such that Qthe provider is extended by spi-fly and publishes a real OSGi service. The problem is on the consuming side, they ServiceLoader.load(Class, Classloader) to locate the provider, so the TCCL is never consulted and so the 'spec-compliant' consumer headers can't help me.
Are there and clever things I can do with spi-fly to make this work? At this point I am somewhat sure that i will have to do some dirty byte weaving myself to make this happen. Before someone mentions the pax tipi jars: I'm not interested. They don't have the latest versions and I'd rather maintain a shim that a patch (however stupid that may or may not be). Ben
