Class HateoasAwareSpringDataWebConfiguration
java.lang.Object
org.springframework.data.web.config.SpringDataWebConfiguration
org.springframework.data.web.config.HateoasAwareSpringDataWebConfiguration
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanClassLoaderAware
,org.springframework.web.servlet.config.annotation.WebMvcConfigurer
@Configuration(proxyBeanMethods=false)
public class HateoasAwareSpringDataWebConfiguration
extends SpringDataWebConfiguration
JavaConfig class to register
PagedResourcesAssembler
and PagedResourcesAssemblerArgumentResolver
.- Since:
- 1.6
- Author:
- Oliver Gierke, Nick Williams, Ben Hale, Vedran Pavic, Mark Paluch, Greg Turnquist
-
Constructor Summary
ConstructorDescriptionHateoasAwareSpringDataWebConfiguration
(org.springframework.context.ApplicationContext context, org.springframework.beans.factory.ObjectFactory<org.springframework.core.convert.ConversionService> conversionService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addArgumentResolvers
(List<org.springframework.web.method.support.HandlerMethodArgumentResolver> argumentResolvers) Methods inherited from class org.springframework.data.web.config.SpringDataWebConfiguration
addFormatters, customizePageableResolver, customizeSortResolver, extendMessageConverters, setBeanClassLoader
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
addCorsMappings, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, getMessageCodesResolver, getValidator
-
Constructor Details
-
HateoasAwareSpringDataWebConfiguration
public HateoasAwareSpringDataWebConfiguration(org.springframework.context.ApplicationContext context, @Qualifier("mvcConversionService") org.springframework.beans.factory.ObjectFactory<org.springframework.core.convert.ConversionService> conversionService) - Parameters:
context
- must not be null.conversionService
- must not be null.
-
-
Method Details
-
pageableResolver
- Overrides:
pageableResolver
in classSpringDataWebConfiguration
-
sortResolver
- Overrides:
sortResolver
in classSpringDataWebConfiguration
-
pagedResourcesAssembler
-
pagedResourcesAssemblerArgumentResolver
-
addArgumentResolvers
public void addArgumentResolvers(List<org.springframework.web.method.support.HandlerMethodArgumentResolver> argumentResolvers) - Specified by:
addArgumentResolvers
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
- Overrides:
addArgumentResolvers
in classSpringDataWebConfiguration
-