@Configuration @ConditionalOnClass(value={org.springframework.mobile.device.site.SitePreferenceHandlerInterceptor.class,org.springframework.mobile.device.site.SitePreferenceHandlerMethodArgumentResolver.class}) @ConditionalOnProperty(prefix="spring.mobile.sitepreference", name="enabled", havingValue="true", matchIfMissing=true) @ConditionalOnWebApplication public class SitePreferenceAutoConfiguration extends Object
Auto-configuration
for Spring Mobile's
SitePreferenceHandler
. The site preference feature depends on a
DeviceResolver
first being registered.Modifier and Type | Class and Description |
---|---|
protected static class |
SitePreferenceAutoConfiguration.SitePreferenceMvcConfiguration |
Constructor and Description |
---|
SitePreferenceAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
org.springframework.mobile.device.site.SitePreferenceHandlerInterceptor |
sitePreferenceHandlerInterceptor() |
org.springframework.mobile.device.site.SitePreferenceHandlerMethodArgumentResolver |
sitePreferenceHandlerMethodArgumentResolver() |
@Bean @ConditionalOnMissingBean(value=org.springframework.mobile.device.site.SitePreferenceHandlerInterceptor.class) public org.springframework.mobile.device.site.SitePreferenceHandlerInterceptor sitePreferenceHandlerInterceptor()
@Bean public org.springframework.mobile.device.site.SitePreferenceHandlerMethodArgumentResolver sitePreferenceHandlerMethodArgumentResolver()
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.