Class DefaultWebappConfigurationSource
- java.lang.Object
-
- org.onebusaway.presentation.impl.configuration.DefaultWebappConfigurationSource
-
- All Implemented Interfaces:
ConfigurationSource
@Component public class DefaultWebappConfigurationSource extends Object implements ConfigurationSource
-
-
Constructor Summary
Constructors Constructor Description DefaultWebappConfigurationSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>getConfiguration(String contextPath)voidsetGoogleAnalyticsKey(String clientKey)voidsetGoogleMapsApiKey(String googleMapsApiKey)The default Google Maps API key can only be used externally for the onebusaway.org domain.voidsetServiceAreaService(ServiceAreaService serviceAreaService)voidsetTransitDataService(TransitDataService transitDataService)
-
-
-
Method Detail
-
setTransitDataService
@Autowired public void setTransitDataService(TransitDataService transitDataService)
-
setServiceAreaService
@Autowired public void setServiceAreaService(ServiceAreaService serviceAreaService)
-
setGoogleMapsApiKey
public void setGoogleMapsApiKey(String googleMapsApiKey)
The default Google Maps API key can only be used externally for the onebusaway.org domain. To use OneBusAway from another domain, you must specify your own Google Maps API key.- Parameters:
googleMapsApiKey- your Google Maps API access key
-
setGoogleAnalyticsKey
public void setGoogleAnalyticsKey(String clientKey)
-
getConfiguration
public Map<String,Object> getConfiguration(String contextPath)
- Specified by:
getConfigurationin interfaceConfigurationSource
-
-