Georg Ragaller wrote: > Niclas Hedhman wrote: >> - Discovery method. There are many ways to "discover" an >> implementation. Anything from looking at system properties, checking >> resources on classpath, to even download one which fulfills some >> constraint expression. There are also room for using various >> frameworks (OSGi, Spring, app servers) to aid in the discovery >> process, so I don't think I want it too rigid. Ideas are welcome... >> > Why not use the Service Provider mechanism from the JRE? > > http://java.sun.com/j2se/1.5.0/docs/guide/jar/jar.html#Service%20Provider > > Up to 1.5 the API is unfortunately not public > (sun.misc.Service#providers(Class)), but starting with 1.6 it is: > > http://java.sun.com/javase/6/docs/api/java/util/ServiceLoader.html > > The 1.5 implementation of the API can easily be mimiced, it's about 50 > lines, I've already done this in a project of mine.
+1 on this one. This would be the cleanest solution I think. /Rickard _______________________________________________ qi4j-dev mailing list [email protected] http://lists.ops4j.org/mailman/listinfo/qi4j-dev

