Search in sources :

Example 1 with ConfigurationSource

use of org.onebusaway.presentation.services.configuration.ConfigurationSource in project onebusaway-application-modules by camsys.

the class ConfigurationServiceImpl method getConfiguration.

@Override
@Cacheable
public Map<String, Object> getConfiguration(@CacheableArgument(cacheRefreshIndicator = true) boolean forceRefresh, String contextPath) {
    Map<String, Object> config = new HashMap<String, Object>();
    for (ConfigurationSource source : _sources) {
        Map<String, Object> sourceConfig = source.getConfiguration(contextPath);
        config.putAll(sourceConfig);
    }
    return config;
}
Also used : ConfigurationSource(org.onebusaway.presentation.services.configuration.ConfigurationSource) HashMap(java.util.HashMap) Cacheable(org.onebusaway.container.cache.Cacheable)

Aggregations

HashMap (java.util.HashMap)1 Cacheable (org.onebusaway.container.cache.Cacheable)1 ConfigurationSource (org.onebusaway.presentation.services.configuration.ConfigurationSource)1