On 10/31/07, Felix Meschberger <[EMAIL PROTECTED]> wrote: > >... 3) Keep our existing interfaces an use the jar service provider mechanism > > Jackrabbit uses that for query syntax plugins, a plugin jar needs a > > text file like this one: > > The mechanism is good and is in fact as Thomas points out used > throughout Sun's own implementations. But it has one serious drawback: > The implementation is based on an internal class and thus not part of > the Java API....
You mean javax.imageio.spi.ServiceRegistry (which is what Jackrabbit uses) might not be available on non-Sun VMs, due to the "javax" prefix? And you mention that BSF has its own implementation, I found this one: https://svn.apache.org/repos/asf/jakarta/bsf/trunk/bsf3/bsf-api/src/main/java/javax/script/ScriptEngineManager.java but that uses sun.misc.Service, which is probably what you mean by an internal class. -Bertrand
