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())));
}
}
Aggregations