META-INF/services [1] is used a lot in non-OSGi environment as an SPI
mechanism. e.g., JAXP, StAX, JPA, etc use this facility. What is the
best way to handle them when we migrate such code to run in OSGi
environment? One solution is to change the library (service provider) to
make the services available as OSGi services in the service registry and
change all clients to use the service registry to look up. But, this
requires changing the library code as well as client code. It's probably
easy to change the library, but changing all the clients is a bit tough
ask. Is there any alternative? Why does the OSGi spec not have any
special treatment for META-INF/services file?
Thanks,
Sahoo
[1] http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html#Service%20Provider
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]