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
ConstructorsConstructorDescriptionHateoasAwareSpringDataWebConfiguration(ApplicationContext context, ObjectFactory<ConversionService> conversionService) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers) Methods inherited from class SpringDataWebConfiguration
addFormatters, configureMessageConverters, customizeOffsetResolver, customizePageableResolver, customizeSortResolver, offsetResolver, setBeanClassLoaderMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface WebMvcConfigurer
addCorsMappings, addErrorResponseInterceptors, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureApiVersioning, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, 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:
pageableResolverin classSpringDataWebConfiguration
-
sortResolver
- Overrides:
sortResolverin classSpringDataWebConfiguration
-
pagedResourcesAssembler
-
pagedResourcesAssemblerArgumentResolver
-
slicedResourcesAssembler
-
slicedResourcesAssemblerArgumentResolver
-
addArgumentResolvers
- Specified by:
addArgumentResolversin interfaceWebMvcConfigurer- Overrides:
addArgumentResolversin classSpringDataWebConfiguration
-