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