Class DeviceDelegatingViewResolverFactory
- java.lang.Object
- org.springframework.boot.autoconfigure.mobile.DeviceDelegatingViewResolverFactory
public class DeviceDelegatingViewResolverFactory extends Object
A factory forLiteDeviceDelegatingViewResolver
that 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.LiteDeviceDelegatingViewResolver
createViewResolver(org.springframework.web.servlet.ViewResolver delegate)
Create aLiteDeviceDelegatingViewResolver
delegating to the specifiedViewResolver
and computing a sensible order for it.org.springframework.mobile.device.view.LiteDeviceDelegatingViewResolver
createViewResolver(org.springframework.web.servlet.ViewResolver delegate, int delegatingOrder)
Create aLiteDeviceDelegatingViewResolver
delegating 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 aLiteDeviceDelegatingViewResolver
delegating to the specifiedViewResolver
.- Parameters:
delegate
- the view resolver to delegate todelegatingOrder
- the order of theLiteDeviceDelegatingViewResolver
- Returns:
- a
LiteDeviceDelegatingViewResolver
handling the specified resolver
createViewResolver
public org.springframework.mobile.device.view.LiteDeviceDelegatingViewResolver createViewResolver(org.springframework.web.servlet.ViewResolver delegate)
Create aLiteDeviceDelegatingViewResolver
delegating to the specifiedViewResolver
and computing a sensible order for it. The specifiedViewResolver
should implementOrdered
, consider usingcreateViewResolver(ViewResolver, int)
if that's not the case.- Parameters:
delegate
- the view resolver to delegate to- Returns:
- a
LiteDeviceDelegatingViewResolver
handling the specified resolver