Class DeviceDelegatingViewResolverFactory
- java.lang.Object
- org.springframework.boot.autoconfigure.mobile.DeviceDelegatingViewResolverFactory
public class DeviceDelegatingViewResolverFactory extends Object
A factory forLiteDeviceDelegatingViewResolverthat applies customizations ofDeviceDelegatingViewResolverProperties.- Since:
- 1.4.0
Constructor Summary
Constructors Constructor Description DeviceDelegatingViewResolverFactory(DeviceDelegatingViewResolverProperties properties)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.mobile.device.view.LiteDeviceDelegatingViewResolvercreateViewResolver(org.springframework.web.servlet.ViewResolver delegate)Create aLiteDeviceDelegatingViewResolverdelegating to the specifiedViewResolverand computing a sensible order for it.org.springframework.mobile.device.view.LiteDeviceDelegatingViewResolvercreateViewResolver(org.springframework.web.servlet.ViewResolver delegate, int delegatingOrder)Create aLiteDeviceDelegatingViewResolverdelegating to the specifiedViewResolver.
Constructor Detail
DeviceDelegatingViewResolverFactory
public DeviceDelegatingViewResolverFactory(DeviceDelegatingViewResolverProperties properties)
Method Detail
createViewResolver
public org.springframework.mobile.device.view.LiteDeviceDelegatingViewResolver createViewResolver(org.springframework.web.servlet.ViewResolver delegate, int delegatingOrder)
Create aLiteDeviceDelegatingViewResolverdelegating to the specifiedViewResolver.- Parameters:
delegate- the view resolver to delegate todelegatingOrder- the order of theLiteDeviceDelegatingViewResolver- Returns:
- a
LiteDeviceDelegatingViewResolverhandling the specified resolver
createViewResolver
public org.springframework.mobile.device.view.LiteDeviceDelegatingViewResolver createViewResolver(org.springframework.web.servlet.ViewResolver delegate)
Create aLiteDeviceDelegatingViewResolverdelegating to the specifiedViewResolverand computing a sensible order for it. The specifiedViewResolvershould implementOrdered, consider usingcreateViewResolver(ViewResolver, int)if that's not the case.- Parameters:
delegate- the view resolver to delegate to- Returns:
- a
LiteDeviceDelegatingViewResolverhandling the specified resolver