public interface StoreProvider
Opens stores of one type (06-stores.md ยง1); found through
ServiceLoader or given to the runtime
(as a Spring bean, say), both along the same path. Replaces 4.x CosIdStoreProvider.-
Method Summary
Modifier and TypeMethodDescriptionopen(StoreConfig config) Opens a store.options()The option keys this provider reads fromStoreConfig.options(), spelled as it reads them (R1-spi-01).type()The type this provider opens.
-
Method Details
-
type
String type()The type this provider opens.- Returns:
"jdbc","redis","mongo","zookeeper","remote"or your own
-
options
The option keys this provider reads fromStoreConfig.options(), spelled as it reads them (R1-spi-01). The runtime matches each configured key to one of these ignoring case,-and_, as Spring's relaxed binding does (init-schema,INITSCHEMAandinitSchemaare one key;.still separates), passes it on under this spelling, and fails the start on any other key, listing these.- Returns:
- the option keys; default none, so a provider that reads options declares them
-
open
Opens a store.- Parameters:
config- the store, its options under the spelling ofoptions()- Returns:
- the store, never null (the runtime refuses a null at start); the runtime closes it
- Throws:
IllegalArgumentException- if an option or the client does not fit this store (R1-core-16)
-