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
HttpMessageConverter s by adding your own. |
default void |
configureJacksonObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Configure the Jackson
ObjectMapper directly. |
default void |
configureRepositoryRestConfiguration(RepositoryRestConfiguration config)
Override this method to add additional configuration.
|
default void |
configureValidatingRepositoryEventListener(ValidatingRepositoryEventListener validatingListener)
Override this method to add validators manually.
|
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.default void configureRepositoryRestConfiguration(RepositoryRestConfiguration config)
config
- Main configuration bean.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)
HttpMessageConverter
s 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–2020 Pivotal Software, Inc.. All rights reserved.