java.lang.Object
me.ahoo.cosid.internal.StoreProviders
Finds the
StoreProvider of a store type (06-stores.md ยง1): the explicit providers (Spring beans or
RuntimeOptions.storeProviders) first, then those ServiceLoader finds. Both go through the same
creation path.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe provider oftype.
-
Constructor Details
-
StoreProviders
The providers.- Parameters:
explicit- providers that win overServiceLoaderfor their type; the first one wins within them
-
-
Method Details
-
find
The provider oftype.- Parameters:
type- the store type- Returns:
- the provider, or empty when none is known
- Throws:
CosIdException- ifServiceLoaderfails to load a provider
-