Hi,

What about using the Java "service provider mechanism" for extensions?
How this works is explained here:
http://java.sun.com/javase/6/docs/api/java/util/ServiceLoader.html -
this mechanism also work in Java 5, H2 would use
javax.imageio.spi.ServiceRegistry (which sounds a bit weird, but it's
basically the same thing).

To register an H2 extensions, either

B) add the file "META-INF/services/org.h2.Service" to the jar file
with the list of extension classes
B) or register the extensions at runtime using a Java API

Registering a file system implementation is already possible using
org.h2.store.fs.FileSystem.register (some built-in file systems use
this mechanism already). What is needed is extend this mechanism for
functions and other components. There are already some candidates, for
example org.h2.mode.FunctionsMySQL.

Regards,
Thomas

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to