public class RepositoryRestConfigurerDelegate extends Object implements RepositoryRestConfigurer
RepositoryRestConfigurer that will forward all calls to configuration methods to
all registered RepositoryRestConfigurer.| Constructor and Description |
|---|
RepositoryRestConfigurerDelegate(Iterable<RepositoryRestConfigurer> delegates)
Creates a new
RepositoryRestConfigurerDelegate for the given RepositoryRestConfigurers. |
| 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 |
configureRepositoryRestConfiguration(RepositoryRestConfiguration config,
CorsRegistry cors)
Override this method to add additional configuration.
|
void |
configureValidatingRepositoryEventListener(ValidatingRepositoryEventListener validatingListener)
Override this method to add validators manually.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwithConfig, withConfigpublic RepositoryRestConfigurerDelegate(Iterable<RepositoryRestConfigurer> delegates)
RepositoryRestConfigurerDelegate for the given RepositoryRestConfigurers.delegates - must not be null.public void configureRepositoryRestConfiguration(RepositoryRestConfiguration config)
RepositoryRestConfigurerconfigureRepositoryRestConfiguration in interface RepositoryRestConfigurerconfig - Main configuration bean.public void configureRepositoryRestConfiguration(RepositoryRestConfiguration config, CorsRegistry cors)
RepositoryRestConfigurerconfigureRepositoryRestConfiguration in interface RepositoryRestConfigurerconfig - Main configuration bean.cors - CORS configuration.public void configureConversionService(ConfigurableConversionService conversionService)
RepositoryRestConfigurerconfigureConversionService in interface RepositoryRestConfigurerconversionService - Default ConversionService bean.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.public void configureValidatingRepositoryEventListener(ValidatingRepositoryEventListener validatingListener)
RepositoryRestConfigurerconfigureValidatingRepositoryEventListener in interface RepositoryRestConfigurervalidatingListener - The ApplicationListener responsible for invoking
Validator instances.Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.