Search in sources :

Example 1 with PersistenceModel

use of org.eclipse.smarthome.model.persistence.persistence.PersistenceModel in project smarthome by eclipse.

the class PersistenceModelManager method addModel.

private void addModel(String modelName) {
    final PersistenceModel model = (PersistenceModel) modelRepository.getModel(modelName);
    if (model != null) {
        String serviceName = serviceName(modelName);
        manager.addConfig(serviceName, new PersistenceServiceConfiguration(mapConfigs(model.getConfigs()), mapStrategies(model.getDefaults()), mapStrategies(model.getStrategies())));
    }
}
Also used : PersistenceModel(org.eclipse.smarthome.model.persistence.persistence.PersistenceModel) PersistenceServiceConfiguration(org.eclipse.smarthome.core.persistence.PersistenceServiceConfiguration)

Aggregations

PersistenceServiceConfiguration (org.eclipse.smarthome.core.persistence.PersistenceServiceConfiguration)1 PersistenceModel (org.eclipse.smarthome.model.persistence.persistence.PersistenceModel)1