Search in sources :

Example 1 with AppPropertiesLocator

use of com.haulmont.cuba.core.config.AppPropertiesLocator in project cuba by cuba-platform.

the class AppPropertiesDatasource method loadAppPropertyEntities.

public List<AppPropertyEntity> loadAppPropertyEntities() {
    ConfigStorageService configStorageService = AppBeans.get(ConfigStorageService.class);
    List<AppPropertyEntity> entities = configStorageService.getAppProperties();
    AppPropertiesLocator appPropertiesLocator = AppBeans.get(AppPropertiesLocator.class);
    entities.addAll(appPropertiesLocator.getAppProperties());
    return entities;
}
Also used : AppPropertiesLocator(com.haulmont.cuba.core.config.AppPropertiesLocator) AppPropertyEntity(com.haulmont.cuba.core.config.AppPropertyEntity) ConfigStorageService(com.haulmont.cuba.core.app.ConfigStorageService)

Aggregations

ConfigStorageService (com.haulmont.cuba.core.app.ConfigStorageService)1 AppPropertiesLocator (com.haulmont.cuba.core.config.AppPropertiesLocator)1 AppPropertyEntity (com.haulmont.cuba.core.config.AppPropertyEntity)1