public interface RepositoryRestConfigurer
| Modifier and Type | Method and Description |
|---|---|
default void |
configureConversionService(ConfigurableConversionService conversionService)
Override this method to add your own converters.
|
default void |
configureExceptionHandlerExceptionResolver(ExceptionHandlerExceptionResolver exceptionResolver)
Configure the
ExceptionHandlerExceptionResolver. |
default void |
configureHttpMessageConverters(List<HttpMessageConverter<?>> messageConverters)
Configure the available
HttpMessageConverters by adding your own. |
default void |
configureJacksonObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Configure the Jackson
ObjectMapper directly. |
default void |
configureRepositoryRestConfiguration(RepositoryRestConfiguration config,
CorsRegistry cors)
Override this method to add additional configuration.
|
default void |
configureValidatingRepositoryEventListener(ValidatingRepositoryEventListener validatingListener)
Override this method to add validators manually.
|
static RepositoryRestConfigurer |
withConfig(BiConsumer<RepositoryRestConfiguration,CorsRegistry> consumer)
Convenience method to easily create simple
RepositoryRestConfigurer instances that solely want to tweak the
RepositoryRestConfiguration. |
static RepositoryRestConfigurer |
withConfig(Consumer<RepositoryRestConfiguration> consumer)
Convenience method to easily create simple
RepositoryRestConfigurer instances that solely want to tweak the
RepositoryRestConfiguration. |
static RepositoryRestConfigurer withConfig(Consumer<RepositoryRestConfiguration> consumer)
RepositoryRestConfigurer instances that solely want to tweak the
RepositoryRestConfiguration.consumer - must not be null.static RepositoryRestConfigurer withConfig(BiConsumer<RepositoryRestConfiguration,CorsRegistry> consumer)
RepositoryRestConfigurer instances that solely want to tweak the
RepositoryRestConfiguration.consumer - must not be null.default void configureRepositoryRestConfiguration(RepositoryRestConfiguration config, CorsRegistry cors)
config - Main configuration bean.cors - CORS configuration.default void configureConversionService(ConfigurableConversionService conversionService)
conversionService - Default ConversionService bean.default void configureValidatingRepositoryEventListener(ValidatingRepositoryEventListener validatingListener)
validatingListener - The ApplicationListener responsible for invoking
Validator instances.default void configureExceptionHandlerExceptionResolver(ExceptionHandlerExceptionResolver exceptionResolver)
ExceptionHandlerExceptionResolver.exceptionResolver - The default exception resolver on which you can add custom argument resolvers.default void configureHttpMessageConverters(List<HttpMessageConverter<?>> messageConverters)
HttpMessageConverters by adding your own.messageConverters - The converters to be used by the system.default void configureJacksonObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
ObjectMapper directly.objectMapper - The ObjectMapper to be used by the system.Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.