Class RestApiExceptionParserForWebFluxAutoConfiguration
java.lang.Object
org.bremersee.exception.spring.boot.autoconfigure.reactive.RestApiExceptionParserForWebFluxAutoConfiguration
@ConditionalOnWebApplication(type=REACTIVE)
@ConditionalOnClass(name={"tools.jackson.databind.ObjectMapper","org.bremersee.exception.RestApiExceptionParserImpl"})
@AutoConfiguration
public class RestApiExceptionParserForWebFluxAutoConfiguration
extends Object
The rest api exception parser autoconfiguration.
- Author:
- Christian Bremer
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new rest api exception parser for web flux autoconfiguration. -
Method Summary
Modifier and TypeMethodDescriptionvoidinit()Init.restApiExceptionParser(tools.jackson.databind.json.JsonMapper.Builder jsonMapperBuilder, tools.jackson.dataformat.xml.XmlMapper.Builder xmlMapperBuilder) Creates rest api exception parser for reactive web application.
-
Constructor Details
-
RestApiExceptionParserForWebFluxAutoConfiguration
public RestApiExceptionParserForWebFluxAutoConfiguration()Instantiates a new rest api exception parser for web flux autoconfiguration.
-
-
Method Details
-
init
@EventListener(org.springframework.boot.context.event.ApplicationReadyEvent.class) public void init()Init. -
restApiExceptionParser
@ConditionalOnWebApplication(type=REACTIVE) @ConditionalOnMissingBean @Bean public RestApiExceptionParser restApiExceptionParser(tools.jackson.databind.json.JsonMapper.Builder jsonMapperBuilder, tools.jackson.dataformat.xml.XmlMapper.Builder xmlMapperBuilder) Creates rest api exception parser for reactive web application.- Parameters:
jsonMapperBuilder- the json mapper builderxmlMapperBuilder- the xml mapper builder- Returns:
- the rest api exception parser
-