Package com.foreach.across.autoconfigure
Class Swagger2AutoConfiguration
java.lang.Object
com.foreach.across.autoconfigure.Swagger2AutoConfiguration
- All Implemented Interfaces:
com.foreach.across.core.context.bootstrap.AcrossBootstrapConfigurer
@Configuration
@ConditionalOnBean(springfox.documentation.swagger2.configuration.Swagger2DocumentationConfiguration.class)
public class Swagger2AutoConfiguration
extends Object
implements com.foreach.across.core.context.bootstrap.AcrossBootstrapConfigurer
Enables Swagger2 in Spring Boot applications.
Ensures that the correct ObjectMapper is detected and is published by the
ObjectMapperConfigurer
using the ObjectMapperConfigured event.- Since:
- 1.0.0
- Author:
- Steven Gentens
-
Field Summary
Fields inherited from interface com.foreach.across.core.context.bootstrap.AcrossBootstrapConfigurer
CONTEXT_INFRASTRUCTURE_MODULE, CONTEXT_POSTPROCESSOR_MODULE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configureContext
(com.foreach.across.core.context.bootstrap.AcrossBootstrapConfig contextConfiguration) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.foreach.across.core.context.bootstrap.AcrossBootstrapConfigurer
configureModule
-
Constructor Details
-
Swagger2AutoConfiguration
public Swagger2AutoConfiguration()
-
-
Method Details
-
configureContext
public void configureContext(com.foreach.across.core.context.bootstrap.AcrossBootstrapConfig contextConfiguration) - Specified by:
configureContext
in interfacecom.foreach.across.core.context.bootstrap.AcrossBootstrapConfigurer
-