use of org.openhab.core.model.persistence.persistence.PersistenceModel in project openhab-core by openhab.
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