public class RepositoryRestConfigurerAdapter extends Object implements RepositoryRestConfigurer
RepositoryRestConfigurer to allow selective override of configuration methods.| Constructor and Description |
|---|
RepositoryRestConfigurerAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
configureConversionService(ConfigurableConversionService conversionService)
Override this method to add your own converters.
|
void |
configureExceptionHandlerExceptionResolver(ExceptionHandlerExceptionResolver exceptionResolver)
Configure the
ExceptionHandlerExceptionResolver. |
void |
configureHttpMessageConverters(List<HttpMessageConverter<?>> messageConverters)
Configure the available
HttpMessageConverters by adding your own. |
void |
configureJacksonObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Configure the Jackson
ObjectMapper directly. |
void |
configureRepositoryRestConfiguration(RepositoryRestConfiguration config)
Override this method to add additional configuration.
|
void |
configureValidatingRepositoryEventListener(ValidatingRepositoryEventListener validatingListener)
Override this method to add validators manually.
|
public void configureRepositoryRestConfiguration(RepositoryRestConfiguration config)
RepositoryRestConfigurerconfigureRepositoryRestConfiguration in interface RepositoryRestConfigurerconfig - Main configuration bean.public void configureConversionService(ConfigurableConversionService conversionService)
RepositoryRestConfigurerconfigureConversionService in interface RepositoryRestConfigurerconversionService - Default ConversionService bean.public void configureValidatingRepositoryEventListener(ValidatingRepositoryEventListener validatingListener)
RepositoryRestConfigurerconfigureValidatingRepositoryEventListener in interface RepositoryRestConfigurervalidatingListener - The ApplicationListener responsible for invoking
Validator instances.public void configureExceptionHandlerExceptionResolver(ExceptionHandlerExceptionResolver exceptionResolver)
RepositoryRestConfigurerExceptionHandlerExceptionResolver.configureExceptionHandlerExceptionResolver in interface RepositoryRestConfigurerexceptionResolver - The default exception resolver on which you can add custom argument resolvers.public void configureHttpMessageConverters(List<HttpMessageConverter<?>> messageConverters)
RepositoryRestConfigurerHttpMessageConverters by adding your own.configureHttpMessageConverters in interface RepositoryRestConfigurermessageConverters - The converters to be used by the system.public void configureJacksonObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
RepositoryRestConfigurerObjectMapper directly.configureJacksonObjectMapper in interface RepositoryRestConfigurerobjectMapper - The ObjectMapper to be used by the system.Copyright © 2011-2015–2016 Pivotal Software, Inc.. All rights reserved.