public class TapirBootstrapper extends Object
TapirBootstrapper
is responsible for bootstrapping the tapir Spring application context based on a given
TapirBootstrapStrategy
.Constructor and Description |
---|
TapirBootstrapper() |
Modifier and Type | Method and Description |
---|---|
static org.springframework.context.ConfigurableApplicationContext |
bootstrap()
Bootstraps the Spring application by using the
TapirFactoriesBootstrapStrategy and returns the
application context . |
static org.springframework.context.ConfigurableApplicationContext |
bootstrap(Class<?> javaClass)
Bootstraps the Spring application based on the given
Class and returns the application context . |
static org.springframework.context.ConfigurableApplicationContext |
bootstrap(TapirBootstrapStrategy bootstrapStrategy)
Bootstraps the Spring application based on the given
TapirBootstrapStrategy and returns the
application context . |
public static org.springframework.context.ConfigurableApplicationContext bootstrap()
TapirFactoriesBootstrapStrategy
and returns the
application context
.TapirFactoriesBootstrapStrategy
public static org.springframework.context.ConfigurableApplicationContext bootstrap(Class<?> javaClass)
Class
and returns the application context
.
If the given javaClass is annotated by TapirContextConfiguration
the
TapirContextConfigurationBootstrapStrategy
is used, otherwise TapirFactoriesBootstrapStrategy
is used.javaClass
- The class which should be used for bootstrappingTapirContextConfiguration
public static org.springframework.context.ConfigurableApplicationContext bootstrap(TapirBootstrapStrategy bootstrapStrategy)
TapirBootstrapStrategy
and returns the
application context
.bootstrapStrategy
- the bootstrap strategyCopyright © 2018–2020 b+m Informatik AG. All rights reserved.