geode-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Smith <>
Subject Re: Defining public SPIs in Geode
Date Wed, 09 Jan 2019 00:38:21 GMT
What sort of services are you thinking of adding?

Technically, things like a CacheLoader or a SecurityManager are SPIs in the
sense that they places where you can plug your code into geode. Using a
ServiceLoader might ok in cases where we want something to be plugged in if
the jar is on the classpath, without any additional configuration. So it
probably depends on what the SPI is for.


On Tue, Jan 8, 2019 at 3:59 PM Dale Emery <> wrote:

> We are exploring adding one or more public Service Provider Interfaces
> (SPIs) for Geode, and would like some guidance about standards,
> conventions, precedent, and such.
> Do we have standards or conventions for creating SPIs? Good examples? Bad
> examples?
> Are there standards or conventions described elsewhere (e.g. Spring) that
> we should consider when defining SPIs?
> Is it as simple(!) as defining a service interface, then using Java's
> ServiceLoader mechanism to discover and load instances of it?
> Any additional considerations for adding a public SPI, compared to a
> private one?
> Cheers,
> Dale

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message