Package org.openhab.core.persistence
Interface PersistenceServiceRegistry
@NonNullByDefault
public interface PersistenceServiceRegistry
This is the interface for a central service that provides access to
PersistenceService
s.- Author:
- Kai Kreuzer - Initial contribution
-
Method Summary
Modifier and TypeMethodDescription@Nullable PersistenceService
Get the persistence service with the given id.getAll()
Returns all available persistence services.@Nullable PersistenceService
Get the default persistence service.@Nullable String
Get the id of the default persistence service.
-
Method Details
-
getDefault
@Nullable PersistenceService getDefault()Get the default persistence service.- Returns:
- the default
PersistenceService
-
get
Get the persistence service with the given id.- Parameters:
serviceId
- the service id- Returns:
- the
PersistenceService
with the given id
-
getDefaultId
@Nullable String getDefaultId()Get the id of the default persistence service.- Returns:
- the id of the default
PersistenceService
-
getAll
Set<PersistenceService> getAll()Returns all available persistence services.- Returns:
- a set of all available
PersistenceService
s
-