From: James Macgill <j.macgill@ge...> - 2002-12-21 22:44:31
I've been looking into the Service Provider Interface system that has been
introduced in Java 1.3+ and thinking about the possibility of using it with
According to sun, an SPI is a collection of interfaces and (usually
This seems to match our core module quite well.
I suspect we can define a number of SPI's one for filers, one for styles,
one for style decoders, one for filter decoders etc. This allows us to
support plug in replacements in a way that is consistent with Sun's
approach (it uses it for JAXP to pick between xerces and the internal parsers).
We could also, with a bit of thought, do the same thing for datasources,
making it possible to make support for new datasources truly plugin. (This
is how JAI works, and Martin has already used the JAI SPI code to add grids
as a new image type).
Apache have a project underway to make using SPIs easier -
I'm not suggesting we launch into this until after the first alpha, but its
definitely something that will be good for the future and, I suspect,
essential for the interface only project.
Is anyone on this list an SPI guru by any chance?
All the best
From: Martin Desruisseaux <martin.desruisseaux@te...> - 2002-12-22 00:10:36
James Macgill a =E9crit :
> Is anyone on this list an SPI guru by any chance?
I'm not a SPI guru, but I guess I'm familiar with maybe half of the
process. I have written plugins for existing service (Image I/O), but
have not yet created new service (e.g. a "DataSource" service).