Re: Defining public SPIs in Geode

2019-01-09 Thread Jacob Barrett
Yes it really is that simple. There are several examples of doing this in Goode. Look at the Extensions SPI. It could easily be pulled out into a geode-spi project for a separate artifact. It uses a ServiceLoader in the XML config to resolve namespaces to an extension parser that can then crea

Re: Defining public SPIs in Geode

2019-01-08 Thread Dan Smith
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 classp

Defining public SPIs in Geode

2019-01-08 Thread Dale Emery
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 descri