Class HateoasAwareSpringDataWebConfiguration
java.lang.Object
org.springframework.data.web.config.SpringDataWebConfiguration
org.springframework.data.web.config.HateoasAwareSpringDataWebConfiguration
- All Implemented Interfaces:
Aware
,BeanClassLoaderAware
,WebMvcConfigurer
@Configuration(proxyBeanMethods=false)
public class HateoasAwareSpringDataWebConfiguration
extends SpringDataWebConfiguration
JavaConfig class to register
PagedResourcesAssembler
, PagedResourcesAssemblerArgumentResolver
,
SlicedResourcesAssembler
and SlicedResourcesAssemblerArgumentResolver
.- Since:
- 1.6
- Author:
- Oliver Gierke, Nick Williams, Ben Hale, Vedran Pavic, Mark Paluch, Greg Turnquist, Michael Schout
-
Constructor Summary
ConstructorDescriptionHateoasAwareSpringDataWebConfiguration
(ApplicationContext context, ObjectFactory<ConversionService> conversionService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addArgumentResolvers
(List<HandlerMethodArgumentResolver> argumentResolvers) Methods inherited from class org.springframework.data.web.config.SpringDataWebConfiguration
addFormatters, customizeOffsetResolver, customizePageableResolver, customizeSortResolver, extendMessageConverters, offsetResolver, 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(ApplicationContext context, @Qualifier("mvcConversionService") ObjectFactory<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
-
slicedResourcesAssembler
-
slicedResourcesAssemblerArgumentResolver
-
addArgumentResolvers
- Specified by:
addArgumentResolvers
in interfaceWebMvcConfigurer
- Overrides:
addArgumentResolvers
in classSpringDataWebConfiguration
-